Skip to content

Commit

Permalink
Blimp: Change division to multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura authored and peterbarker committed Jan 2, 2025
1 parent dcafda8 commit 8513837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Blimp/RC_Channel_Blimp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ bool RC_Channel_Blimp::do_aux_function(const AuxFuncTrigger &trigger)
void Blimp::save_trim()
{
// save roll and pitch trim
float roll_trim = ToRad((float)channel_right->get_control_in()/100.0f);
float pitch_trim = ToRad((float)channel_front->get_control_in()/100.0f);
float roll_trim = ToRad((float)channel_right->get_control_in()*0.01f);
float pitch_trim = ToRad((float)channel_front->get_control_in()*0.01f);
ahrs.add_trim(roll_trim, pitch_trim);
LOGGER_WRITE_EVENT(LogEvent::SAVE_TRIM);
gcs().send_text(MAV_SEVERITY_INFO, "Trim saved");
Expand Down

0 comments on commit 8513837

Please sign in to comment.