mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
AP_Motors: RC_Channel refactor
More fixing up of RC_Channel change access to data members to functions
This commit is contained in:
parent
4980c8bc94
commit
de5130fa13
@ -74,8 +74,8 @@ void setup()
|
|||||||
motors.output_min();
|
motors.output_min();
|
||||||
|
|
||||||
// setup radio
|
// setup radio
|
||||||
rc3.radio_min = 1000;
|
rc3.set_radio_min(1000);
|
||||||
rc3.radio_max = 2000;
|
rc3.set_radio_max(2000);
|
||||||
|
|
||||||
// set rc channel ranges
|
// set rc channel ranges
|
||||||
rc1.set_angle(4500);
|
rc1.set_angle(4500);
|
||||||
@ -139,7 +139,7 @@ void stability_test()
|
|||||||
int16_t rpy_tests[] = {0, 1000, 2000, 3000, 4500, -1000, -2000, -3000, -4500};
|
int16_t rpy_tests[] = {0, 1000, 2000, 3000, 4500, -1000, -2000, -3000, -4500};
|
||||||
uint8_t rpy_tests_num = sizeof(rpy_tests) / sizeof(int16_t);
|
uint8_t rpy_tests_num = sizeof(rpy_tests) / sizeof(int16_t);
|
||||||
|
|
||||||
hal.console->printf("\nTesting stability patch\nThrottle Min:%d Max:%d\n",(int)rc3.radio_min,(int)rc3.radio_max);
|
hal.console->printf("\nTesting stability patch\nThrottle Min:%d Max:%d\n",(int)rc3.get_radio_min(),(int)rc3.get_radio_max());
|
||||||
|
|
||||||
// arm motors
|
// arm motors
|
||||||
motors.armed(true);
|
motors.armed(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user