Skip to content

Commit

Permalink
add airspeed report
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Mar 14, 2024
2 parents d753f41 + 7dff0fd commit 2d1d7db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Airspeed/AP_Airspeed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ void AP_Airspeed::update_calibration(uint8_t i, float raw_pressure)
}
param[i].offset.set_and_save(calibrated_offset);
calibration_state[i] = CalibrationState::SUCCESS;
float offset = state[i].cal.sum / state[i].cal.count;
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Airspeed %u calibrated, offset %4.0f", i + 1, offset);
param[i].offset.set_and_save(offset);
}
state[i].cal.start_ms = 0;
return;
Expand Down

0 comments on commit 2d1d7db

Please sign in to comment.