thecognifly / CogniFly-STL

3D files for printing and assembling current and past versions of CogniFly
https://thecognifly.github.io/
31 stars 3 forks source link

Support for other iNav FCs #2

Open nicolasj92 opened 2 years ago

nicolasj92 commented 2 years ago

Hi, I do have another question. Can you provide instructions on how to configure other iNav flight controllers to work with the python lib? The flight controller that is linked in the readme is sold out and seemingly outdated. There is a newer version with 40A ESCs available. Do you know if this one is compatible with the firmware file? Or can you provide instructions on how to make other FCs work?

ricardodeazambuja commented 2 years ago

Usually the manufacturers tell you the Betaflight target for the FC (sometimes it's part of the name of the file they supply). Then you just need to check here for the same target name: https://github.com/thecognifly/inav/tree/CogniFly/src/main/target

The easiest way to build your own firmware is using docker: https://github.com/thecognifly/inav/blob/master/docs/development/Building%20in%20Docker.md

After that, you use inav-configurator to flash the firmware: Firmware flasher => Load Firmware (Local), don't forget to select "Full chip erase" because it is probable the settings are totally different. To put the FC into DFU mode (needed for flashing), the easiest way is to turn it own pressing the button it usually has. Another option is to use the CLI and one of the commands: bl or dfu. Here you may found some useful info: https://github.com/thecognifly/YAMSPy#setting-up-your-flight-controller-fc