Motors: updates for new AP_Param API

This commit is contained in:
Andrew Tridgell 2012-12-13 08:52:23 +11:00
parent 9d1f43928c
commit 7582c882e6
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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