MCPcopy 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
2019float
2020Compass::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

MagDeclinationMethod · 0.45
calcMagHeadingInnovMethod · 0.45
MagDeclinationMethod · 0.45
yaw_error_compassMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected