Dominik Diedrich
/
drone_quado_x
code to fly a quadrocopter
PWM/pwmdeg.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_PWMDEG_H |
DD1993 | 0:b0f9c5ac0305 | 2 | #define MBED_PWMDEG_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 pwmdeg { |
DD1993 | 0:b0f9c5ac0305 | 8 | |
DD1993 | 0:b0f9c5ac0305 | 9 | public: |
DD1993 | 0:b0f9c5ac0305 | 10 | float pitch_forward(int pitch_in); |
DD1993 | 0:b0f9c5ac0305 | 11 | float roll(int roll_in); |
DD1993 | 0:b0f9c5ac0305 | 12 | float yaw(int yaw_in); |
DD1993 | 0:b0f9c5ac0305 | 13 | |
DD1993 | 0:b0f9c5ac0305 | 14 | protected: |
DD1993 | 0:b0f9c5ac0305 | 15 | |
DD1993 | 0:b0f9c5ac0305 | 16 | }; |
DD1993 | 0:b0f9c5ac0305 | 17 | #endif |