Skip to content

Commit

Permalink
log velxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Sep 19, 2024
1 parent 044490b commit 7508262
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ArduSub/ArduSub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ void Sub::ten_hz_logging_loop()
}
if (should_log(MASK_LOG_NTUN) && (sub.flightmode->requires_GPS() || !sub.flightmode->has_manual_throttle())) {
pos_control.write_log();
logger.Write_PID(LOG_PIDN_MSG, pos_control.get_vel_xy_pid().get_pid_info_x());
logger.Write_PID(LOG_PIDE_MSG, pos_control.get_vel_xy_pid().get_pid_info_y());
}
if (should_log(MASK_LOG_IMU) || should_log(MASK_LOG_IMU_FAST) || should_log(MASK_LOG_IMU_RAW)) {
AP::ins().Write_Vibration();
Expand Down

0 comments on commit 7508262

Please sign in to comment.