mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AntennaTracker: privatize AHRS logging
This commit is contained in:
parent
e9ea360a99
commit
d605f3aea0
@ -10,13 +10,13 @@ void Tracker::Log_Write_Attitude()
|
|||||||
Vector3f targets;
|
Vector3f targets;
|
||||||
targets.y = nav_status.pitch * 100.0f;
|
targets.y = nav_status.pitch * 100.0f;
|
||||||
targets.z = wrap_360_cd(nav_status.bearing * 100.0f);
|
targets.z = wrap_360_cd(nav_status.bearing * 100.0f);
|
||||||
logger.Write_Attitude(targets);
|
ahrs.Write_Attitude(targets);
|
||||||
AP::ahrs_navekf().Log_Write();
|
AP::ahrs_navekf().Log_Write();
|
||||||
logger.Write_AHRS2();
|
ahrs.Write_AHRS2();
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
sitl.Log_Write_SIMSTATE();
|
sitl.Log_Write_SIMSTATE();
|
||||||
#endif
|
#endif
|
||||||
logger.Write_POS();
|
ahrs.Write_POS();
|
||||||
}
|
}
|
||||||
|
|
||||||
struct PACKED log_Vehicle_Baro {
|
struct PACKED log_Vehicle_Baro {
|
||||||
|
Loading…
Reference in New Issue
Block a user