Plane: Write_Rate() moved to AC_AttitudeControl

This commit is contained in:
Andy Piper 2024-09-04 10:10:57 +01:00 committed by Peter Hall
parent ff72e163d9
commit 8596466d5a
1 changed files with 1 additions and 1 deletions

View File

@ -1764,7 +1764,7 @@ void QuadPlane::update(void)
const bool motors_active = in_vtol_mode() || assisted_flight; const bool motors_active = in_vtol_mode() || assisted_flight;
if (motors_active && (motors->get_spool_state() != AP_Motors::SpoolState::SHUT_DOWN)) { if (motors_active && (motors->get_spool_state() != AP_Motors::SpoolState::SHUT_DOWN)) {
// log RATE at main loop rate // log RATE at main loop rate
ahrs_view->Write_Rate(*motors, *attitude_control, *pos_control); attitude_control->Write_Rate(*pos_control);
// log CTRL and MOTB at 10 Hz // log CTRL and MOTB at 10 Hz
if (now - last_ctrl_log_ms > 100) { if (now - last_ctrl_log_ms > 100) {