mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Motors: fix example sketch
Also minor formatting fix Thanks to OXINARF for spotting this
This commit is contained in:
parent
ffa6d1a5b9
commit
037e411e35
@ -59,8 +59,7 @@ void setup()
|
||||
|
||||
// motor initialisation
|
||||
motors.set_update_rate(490);
|
||||
motors.set_frame_class_and_type(AP_Motors::MOTOR_FRAME_QUAD, AP_Motors::MOTOR_FRAME_TYPE_X);
|
||||
motors.Init();
|
||||
motors.init(AP_Motors::MOTOR_FRAME_QUAD, AP_Motors::MOTOR_FRAME_TYPE_X);
|
||||
#if HELI_TEST == 0
|
||||
motors.set_throttle_range(1000,2000);
|
||||
motors.set_throttle_avg_max(0.5f);
|
||||
|
Loading…
Reference in New Issue
Block a user