From 8b54665a48690b49ea6626768f20232fb61bf3c3 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 7 Jan 2022 14:57:54 +0000 Subject: [PATCH] AP_Motors: example: remove SRV_Channels calls --- .../examples/AP_Motors_test/AP_Motors_test.cpp | 12 ------------ 1 file changed, 12 deletions(-) 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 53f4b753d1..b68a58fda5 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 @@ -49,16 +49,6 @@ void setup() #endif motors.output_min(); - // setup radio - SRV_Channels::srv_channel(2)->set_output_min(1000); - SRV_Channels::srv_channel(2)->set_output_max(2000); - - // set rc channel ranges - SRV_Channels::srv_channel(0)->set_angle(4500); - SRV_Channels::srv_channel(1)->set_angle(4500); - SRV_Channels::srv_channel(2)->set_range(1000); - SRV_Channels::srv_channel(3)->set_angle(4500); - hal.scheduler->delay(1000); } @@ -115,8 +105,6 @@ void stability_test() int16_t rpy_tests[] = {0, 1000, 2000, 3000, 4500, -1000, -2000, -3000, -4500}; uint8_t rpy_tests_num = sizeof(rpy_tests) / sizeof(int16_t); - hal.console->printf("\nTesting stability patch\nThrottle Min:%d Max:%d\n",(int)SRV_Channels::srv_channel(2)->get_output_min(),(int)SRV_Channels::srv_channel(2)->get_output_max()); - // arm motors motors.armed(true); motors.set_interlock(true);