Start PWM at Boot, Continuous Idle Level

I’m writing my own flight controller for a quadcopter in C++ using a Raspberry Pi 3 B+ and a Navio 2.

Is there a way to have the PWM start at boot and maintain a continuous idle level instead of shutting off if duty_cycle isn’t repeatedly written to?

Hi Kyle,

If you want to maintain a constant level at a pin you can set pin to “Output” through GPIO. You can find more on how to work with GPIO at that page.

To set that level on boot, I believe you can write a shell script and make it running on startup.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.