![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
code to fly a quadrocopter
Diff: Motors/motor_mixer.h
- Revision:
- 0:b0f9c5ac0305
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Motors/motor_mixer.h Tue May 05 21:11:38 2020 +0000 @@ -0,0 +1,22 @@ +#ifndef motor_mixer_H +#define motor_mixer_H + +#include "mbed.h" + +class motormixer +{ +public: + + void motor_all_period(int period); + void motor_calibration(int period); //sets the period time of the motors + void motor_all_off(); + void motor1_ready(int motor_all_pwm_ready, int roll_error_pwm_ready, int pitch_error_pwm_ready, int yaw_error_pwm_ready); + void motor2_ready(int motor_all_pwm_ready, int roll_error_pwm_ready, int pitch_error_pwm_ready, int yaw_error_pwm_ready); + void motor3_ready(int motor_all_pwm_ready, int roll_error_pwm_ready, int pitch_error_pwm_ready, int yaw_error_pwm_ready); + void motor4_ready(int motor_all_pwm_ready, int roll_error_pwm_ready, int pitch_error_pwm_ready, int yaw_error_pwm_ready); + +private: + +}; + +#endif \ No newline at end of file