liourej / CodeDroneDIY

The most simple, but working, quadricopter flight controller from scratch, using Arduino Uno/Nano.
https://www.youtube.com/watch?v=C8MZH-K4qus
167 stars 41 forks source link

Raspberry Pico #8

Open pschatzmann opened 3 years ago

pschatzmann commented 3 years ago

Thanks for your project. this is great work.

I am trying to use your project on a Raspberry Pico. The only AVR specific functionality is in MotorsSpeedControl so I need to provide an alternative implementation.

I have one small doubt with the void MotorsSpeedControl::UpdateSpeed(int _id, float _PWM) method.

Is the _PWM argument the pulse width (in the range of MIN_POWER - MAX_POWER ? Or is it something else ?

The naming and data type got me a little bit confused...

pschatzmann commented 3 years ago

I have an implementation now: https://github.com/pschatzmann/pico-arduino/blob/main/examples/codedronediy I hope I did not get it wrong...