![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
code to fly a quadrocopter
Motors/motor_mixer.h@0:b0f9c5ac0305, 2020-05-05 (annotated)
- Committer:
- DD1993
- Date:
- Tue May 05 21:11:38 2020 +0000
- Revision:
- 0:b0f9c5ac0305
initial
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DD1993 | 0:b0f9c5ac0305 | 1 | #ifndef motor_mixer_H |
DD1993 | 0:b0f9c5ac0305 | 2 | #define motor_mixer_H |
DD1993 | 0:b0f9c5ac0305 | 3 | |
DD1993 | 0:b0f9c5ac0305 | 4 | #include "mbed.h" |
DD1993 | 0:b0f9c5ac0305 | 5 | |
DD1993 | 0:b0f9c5ac0305 | 6 | class motormixer |
DD1993 | 0:b0f9c5ac0305 | 7 | { |
DD1993 | 0:b0f9c5ac0305 | 8 | public: |
DD1993 | 0:b0f9c5ac0305 | 9 | |
DD1993 | 0:b0f9c5ac0305 | 10 | void motor_all_period(int period); |
DD1993 | 0:b0f9c5ac0305 | 11 | void motor_calibration(int period); //sets the period time of the motors |
DD1993 | 0:b0f9c5ac0305 | 12 | void motor_all_off(); |
DD1993 | 0:b0f9c5ac0305 | 13 | void motor1_ready(int motor_all_pwm_ready, int roll_error_pwm_ready, int pitch_error_pwm_ready, int yaw_error_pwm_ready); |
DD1993 | 0:b0f9c5ac0305 | 14 | void motor2_ready(int motor_all_pwm_ready, int roll_error_pwm_ready, int pitch_error_pwm_ready, int yaw_error_pwm_ready); |
DD1993 | 0:b0f9c5ac0305 | 15 | void motor3_ready(int motor_all_pwm_ready, int roll_error_pwm_ready, int pitch_error_pwm_ready, int yaw_error_pwm_ready); |
DD1993 | 0:b0f9c5ac0305 | 16 | void motor4_ready(int motor_all_pwm_ready, int roll_error_pwm_ready, int pitch_error_pwm_ready, int yaw_error_pwm_ready); |
DD1993 | 0:b0f9c5ac0305 | 17 | |
DD1993 | 0:b0f9c5ac0305 | 18 | private: |
DD1993 | 0:b0f9c5ac0305 | 19 | |
DD1993 | 0:b0f9c5ac0305 | 20 | }; |
DD1993 | 0:b0f9c5ac0305 | 21 | |
DD1993 | 0:b0f9c5ac0305 | 22 | #endif |