![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
code to fly a quadrocopter
PWM/degpwm.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 MBED_DEGPWM_H |
DD1993 | 0:b0f9c5ac0305 | 2 | #define MBED_DEGPWM_H |
DD1993 | 0:b0f9c5ac0305 | 3 | |
DD1993 | 0:b0f9c5ac0305 | 4 | #include "mbed.h" |
DD1993 | 0:b0f9c5ac0305 | 5 | |
DD1993 | 0:b0f9c5ac0305 | 6 | |
DD1993 | 0:b0f9c5ac0305 | 7 | class Degpwm { |
DD1993 | 0:b0f9c5ac0305 | 8 | |
DD1993 | 0:b0f9c5ac0305 | 9 | public: |
DD1993 | 0:b0f9c5ac0305 | 10 | int pitch_pwm(float pitch_error); |
DD1993 | 0:b0f9c5ac0305 | 11 | int roll_pwm(float roll_error); |
DD1993 | 0:b0f9c5ac0305 | 12 | int yaw_pwm(float yaw_error); |
DD1993 | 0:b0f9c5ac0305 | 13 | |
DD1993 | 0:b0f9c5ac0305 | 14 | protected: |
DD1993 | 0:b0f9c5ac0305 | 15 | |
DD1993 | 0:b0f9c5ac0305 | 16 | }; |
DD1993 | 0:b0f9c5ac0305 | 17 | #endif |