AP_Motors: create and use a singleton for SRV_Channels

This commit is contained in:
Peter Barker 2024-11-10 09:50:00 +11:00 committed by Andrew Tridgell
parent 573b02fc23
commit d204f22fe0
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ void stability_test()
// arm motors // arm motors
motors->armed(true); motors->armed(true);
motors->set_interlock(true); motors->set_interlock(true);
SRV_Channels::enable_aux_servos(); AP::srv().enable_aux_servos();
hal.console->printf("Roll,Pitch,Yaw,Thr,"); hal.console->printf("Roll,Pitch,Yaw,Thr,");
for (uint8_t i=0; i<num_outputs; i++) { for (uint8_t i=0; i<num_outputs; i++) {