|
|
@ -29,7 +29,8 @@ public: |
|
|
|
instant_pwm_force01(false), |
|
|
|
instant_pwm_force01(false), |
|
|
|
instant_pwm_force23(false), |
|
|
|
instant_pwm_force23(false), |
|
|
|
instant_pwm_force67(false), |
|
|
|
instant_pwm_force67(false), |
|
|
|
_num_motors(0) {}; |
|
|
|
_num_motors(0) { |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// init
|
|
|
|
// init
|
|
|
|
virtual void Init(); |
|
|
|
virtual void Init(); |
|
|
@ -45,7 +46,9 @@ public: |
|
|
|
virtual void enable(); |
|
|
|
virtual void enable(); |
|
|
|
|
|
|
|
|
|
|
|
// get basic information about the platform
|
|
|
|
// get basic information about the platform
|
|
|
|
virtual uint8_t get_num_motors() { return _num_motors; }; |
|
|
|
virtual uint8_t get_num_motors() { |
|
|
|
|
|
|
|
return _num_motors; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// motor test
|
|
|
|
// motor test
|
|
|
|
virtual void output_test(); |
|
|
|
virtual void output_test(); |
|
|
@ -63,7 +66,9 @@ public: |
|
|
|
virtual void remove_all_motors(); |
|
|
|
virtual void remove_all_motors(); |
|
|
|
|
|
|
|
|
|
|
|
// setup_motors - configures the motors for a given frame type - should be overwritten by child classes
|
|
|
|
// setup_motors - configures the motors for a given frame type - should be overwritten by child classes
|
|
|
|
virtual void setup_motors() { remove_all_motors(); }; |
|
|
|
virtual void setup_motors() { |
|
|
|
|
|
|
|
remove_all_motors(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// matrix
|
|
|
|
// matrix
|
|
|
|
AP_Int8 opposite_motor[AP_MOTORS_MAX_NUM_MOTORS]; // motor number of the opposite motor
|
|
|
|
AP_Int8 opposite_motor[AP_MOTORS_MAX_NUM_MOTORS]; // motor number of the opposite motor
|
|
|
|