Skip to content

Commit

Permalink
Sub: Write_Rate() moved to AC_AttitudeControl
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Sep 4, 2024
1 parent d9c82b3 commit 70e5ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ArduSub/ArduSub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +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();
ahrs_view.Write_Rate(motors, attitude_control, pos_control);
attitude_control.Write_Rate(motors, pos_control);
if (should_log(MASK_LOG_PID)) {
logger.Write_PID(LOG_PIDR_MSG, attitude_control.get_rate_roll_pid().get_pid_info());
logger.Write_PID(LOG_PIDP_MSG, attitude_control.get_rate_pitch_pid().get_pid_info());
Expand Down Expand Up @@ -222,7 +222,7 @@ void Sub::twentyfive_hz_logging()
{
if (should_log(MASK_LOG_ATTITUDE_FAST)) {
Log_Write_Attitude();
ahrs_view.Write_Rate(motors, attitude_control, pos_control);
attitude_control.Write_Rate(motors, pos_control);
if (should_log(MASK_LOG_PID)) {
logger.Write_PID(LOG_PIDR_MSG, attitude_control.get_rate_roll_pid().get_pid_info());
logger.Write_PID(LOG_PIDP_MSG, attitude_control.get_rate_pitch_pid().get_pid_info());
Expand Down

0 comments on commit 70e5ed1

Please sign in to comment.