ebelski / rust-copter

A quadcopter build using a Teensy running Rust and some other cool stuff that's yet to be determined.
MIT License
6 stars 1 forks source link

Reset to 0% throttle, implement real kill switch #6

Closed mciantyre closed 4 years ago

mciantyre commented 4 years ago

The PR changes the behavior of the SPACE bar in the pwm-control example. Pressing the SPACE bar resets the outputs to 0% throttle, not 0% duty cycle. We move the kill switch to the \ key. Pressing the kill switch will set the duty cycles to 0%, then blocks the event loop. We'll be required to reset the system if we press the kill switch.

Closes #5

mciantyre commented 4 years ago

Demo below shows that, at startup, we command 0% throttle (50% duty cycle). We command different throttle percentages for the four outputs, and we show that the commands are respected. At the end, we press the SPACE bar to command 0% throttle, and we observe the expected 50% duty cycle.

out