Skip to content

Commit

Permalink
Sub: cork SRV_Channels for improved performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jun 27, 2024
1 parent 86f5b6a commit d460851
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -161,7 +161,9 @@ void Sub::fifty_hz_loop()
// Update rc input/output
rc().read_input();
SRV_Channels::calc_pwm();
SRV_Channels::cork();
SRV_Channels::output_ch_all();
SRV_Channels::push();
}

// update_batt_compass - read battery and compass
Expand Down
2 changes: 2 additions & 0 deletions ArduSub/motors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ void Sub::motors_output()
verify_motor_test();
} else {
motors.set_interlock(true);
SRV_Channels::cork();
motors.output();
SRV_Channels::push();
}
}

Expand Down

0 comments on commit d460851

Please sign in to comment.