Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArduPilot/ardupilot
/ get_declination
Method
get_declination
libraries/AP_Compass/AP_Compass.cpp:2019–2023 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2017
}
2018
2019
float
2020
Compass::get_declination() const
2021
{
2022
return _declination.get();
2023
}
2024
2025
/*
2026
calculate a compass heading given the attitude from DCM and the mag vector
Callers
4
MagDeclination
Method · 0.45
calcMagHeadingInnov
Method · 0.45
MagDeclination
Method · 0.45
yaw_error_compass
Method · 0.45
Calls
1
get
Method · 0.45
Tested by
no test coverage detected