From d204f22fe0b767a4bbe9ed3bddaf6eacb5d1dd54 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 10 Nov 2024 09:50:00 +1100 Subject: [PATCH] AP_Motors: create and use a singleton for SRV_Channels --- libraries/AP_Motors/examples/AP_Motors_test/AP_Motors_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Motors/examples/AP_Motors_test/AP_Motors_test.cpp b/libraries/AP_Motors/examples/AP_Motors_test/AP_Motors_test.cpp index f28db5c924..336eea61e3 100644 --- a/libraries/AP_Motors/examples/AP_Motors_test/AP_Motors_test.cpp +++ b/libraries/AP_Motors/examples/AP_Motors_test/AP_Motors_test.cpp @@ -518,7 +518,7 @@ void stability_test() // arm motors motors->armed(true); motors->set_interlock(true); - SRV_Channels::enable_aux_servos(); + AP::srv().enable_aux_servos(); hal.console->printf("Roll,Pitch,Yaw,Thr,"); for (uint8_t i=0; i