This program controls the motion of a toy helicopter. It starts of by calibrating the yaw with respect to a reference point and then uses feedback control to maintain stable flight. The buttons are used to change the height and yaw.
It can be run on an online simulator which takes a .out file.
Note: This program was designed on CCS8.3.0.00009 to work with the compiler TI v 18.1.4.LTS.
- PE4
- PB0 (channel A)
- PB1 (channel B)
- PC4 (reference)
- PC5
- PF1
- Increases the duty cycle of the main rotor PWM by 10%
- Decreases the duty cycle of the main rotor PWM by 10%
- Increases the duty cycle of the tail rotor PWM by 15%
- Decreases the duty cycle of the tail rotor PWM by 15%