ArduSub: make SRV_Channels::cork non-static

for symmetry with the push function
This commit is contained in:
Peter Barker 2024-11-13 08:09:59 +11:00 committed by Andrew Tridgell
parent aadc37ebeb
commit afadb7e6c0
1 changed files with 3 additions and 2 deletions

View File

@ -18,11 +18,12 @@ void Sub::motors_output()
verify_motor_test(); verify_motor_test();
} else { } else {
motors.set_interlock(true); motors.set_interlock(true);
SRV_Channels::cork(); auto &srv = AP::srv();
srv.cork();
SRV_Channels::calc_pwm(); SRV_Channels::calc_pwm();
SRV_Channels::output_ch_all(); SRV_Channels::output_ch_all();
motors.output(); motors.output();
AP::srv().push(); srv.push();
} }
} }