Sub: log ANG attitude message

This commit is contained in:
Andy Piper 2024-09-10 11:57:08 +01:00 committed by Andrew Tridgell
parent 2e194383d2
commit 3bbf4e6b33
1 changed files with 2 additions and 0 deletions

View File

@ -183,6 +183,7 @@ void Sub::ten_hz_logging_loop()
// log attitude data if we're not already logging at the higher rate
if (should_log(MASK_LOG_ATTITUDE_MED) && !should_log(MASK_LOG_ATTITUDE_FAST)) {
Log_Write_Attitude();
attitude_control.Write_ANG();
attitude_control.Write_Rate(pos_control);
if (should_log(MASK_LOG_PID)) {
logger.Write_PID(LOG_PIDR_MSG, attitude_control.get_rate_roll_pid().get_pid_info());
@ -222,6 +223,7 @@ void Sub::twentyfive_hz_logging()
{
if (should_log(MASK_LOG_ATTITUDE_FAST)) {
Log_Write_Attitude();
attitude_control.Write_ANG();
attitude_control.Write_Rate(pos_control);
if (should_log(MASK_LOG_PID)) {
logger.Write_PID(LOG_PIDR_MSG, attitude_control.get_rate_roll_pid().get_pid_info());