mirror of https://github.com/ArduPilot/ardupilot
Motors: updates for new AP_Param API
This commit is contained in:
parent
9d1f43928c
commit
7582c882e6
|
@ -60,6 +60,7 @@ public:
|
||||||
_servo_4(yaw_servo),
|
_servo_4(yaw_servo),
|
||||||
_rc_8(rc_8)
|
_rc_8(rc_8)
|
||||||
{
|
{
|
||||||
|
AP_Param::setup_object_defaults(this, var_info);
|
||||||
throttle_mid = 0;
|
throttle_mid = 0;
|
||||||
_roll_scaler = 1;
|
_roll_scaler = 1;
|
||||||
_pitch_scaler = 1;
|
_pitch_scaler = 1;
|
||||||
|
|
|
@ -55,6 +55,8 @@ AP_Motors::AP_Motors( uint8_t APM_version, RC_Channel* rc_roll, RC_Channel* rc_p
|
||||||
{
|
{
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
|
||||||
|
AP_Param::setup_object_defaults(this, var_info);
|
||||||
|
|
||||||
top_bottom_ratio = AP_MOTORS_TOP_BOTTOM_RATIO;
|
top_bottom_ratio = AP_MOTORS_TOP_BOTTOM_RATIO;
|
||||||
|
|
||||||
// initialise motor map
|
// initialise motor map
|
||||||
|
|
Loading…
Reference in New Issue