User Tools

Site Tools


misc:hacks:betaflight

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
misc:hacks:betaflight [2017-04-12 23:33]
theseankelly [Configuring Transmitter]
misc:hacks:betaflight [2021-06-24 16:43] (current)
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page has deprecated and will be archived. Please go to [[https://www.bitcraze.io/]].
 +</WRAP>
 +
 +
 ====== Betaflight for Crazyflie 2.0 ====== ====== Betaflight for Crazyflie 2.0 ======
  
Line 19: Line 24:
  
 ===== Building ===== ===== Building =====
-<WRAP center round info> 
-TEMPORARY: As of this writing, the changes for the Crazyflie 2.0 target have not been merged back into the Betaflight repo -- temporarily working out of a [[https://github.com/theseankelly/betaflight/commits/cf2|private fork]]. Intent is to merge into Betaflight ASAP once a few bugs in the latest Betaflight are ironed out. 
-</WRAP> 
 Execute the following from a bash shell (uses the same toolchain as the crazyflie-firmware project -- this can be done on the [[projects:virtualmachine:index|Bitcraze]] VM for example) Execute the following from a bash shell (uses the same toolchain as the crazyflie-firmware project -- this can be done on the [[projects:virtualmachine:index|Bitcraze]] VM for example)
-  - git clone https://github.com/theseankelly/betaflight +  - git clone https://github.com/betaflight/betaflight
-  - git checkout cf2+
   - export TARGET=CRAZYFLIE2   - export TARGET=CRAZYFLIE2
   - make   - make
-You should see "betaflight_3.2.0_CRAZYFLIE2.hex" appear in the obj directory of the project.+You should see "betaflight_3.2.0_CRAZYFLIE2.hex" (version number may be newer) appear in the obj directory of the project.
  
 ===== Flashing ===== ===== Flashing =====
Line 43: Line 44:
  
 ===== Configuring Betaflight ===== ===== Configuring Betaflight =====
-The defaults after flashing should be sufficient for flight.+The defaults after flashing should be sufficient for flight.  
 + 
 +Some things of note: 
 +  * It's suggested to change the brushed motor PWM to something higher to reduce audible noise - 24khz works well. 
 +  * Configured to use a TARGET_CUSTOM serial Rx protocol - this is a new feature in betaflight for the crazyflie so that the NRF51 firmware does not need to change. This option was very recently added to the betaflight/cleanflight configurators, so make sure you're using the latest version of the configurators (or just don't change the serialRx protocol drop down -- it will be a blank white box on earlier configurators 
 +  * PIDs have not been tuned for the crazyflie -- the stock PIDs seem to be doing quite well though.
  
 ===== Configuring Transmitter ===== ===== Configuring Transmitter =====
misc/hacks/betaflight.1492032818.txt.gz · Last modified: 2017-04-12 23:33 by theseankelly