mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AntennaTracker: move logging of SIMSTATE, AHRS2 and POS into AP_AHRS library
This commit is contained in:
parent
bd069cc5e9
commit
0df4b8066c
@ -12,11 +12,6 @@ void Tracker::Log_Write_Attitude()
|
|||||||
targets.z = wrap_360_cd(nav_status.bearing * 100.0f);
|
targets.z = wrap_360_cd(nav_status.bearing * 100.0f);
|
||||||
ahrs.Write_Attitude(targets);
|
ahrs.Write_Attitude(targets);
|
||||||
AP::ahrs().Log_Write();
|
AP::ahrs().Log_Write();
|
||||||
ahrs.Write_AHRS2();
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
|
||||||
sitl.Log_Write_SIMSTATE();
|
|
||||||
#endif
|
|
||||||
ahrs.Write_POS();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct PACKED log_Vehicle_Baro {
|
struct PACKED log_Vehicle_Baro {
|
||||||
|
Loading…
Reference in New Issue
Block a user