Go to file
Nicholas Sherlock e492aa6a39 Add (untested) support for recording Tricopter tail servo position 2014-12-09 17:27:56 +13:00
docs Documenting some controls. 2014-12-06 16:41:30 +00:00
lib Removing more profanity from code. See #43. 2014-10-15 14:33:10 +01:00
obj Add (untested) support for recording Tricopter tail servo position 2014-12-09 17:27:56 +13:00
src Add (untested) support for recording Tricopter tail servo position 2014-12-09 17:27:56 +13:00
support Normalize all the line endings 2014-09-15 23:40:17 +01:00
targets Normalize all the line endings 2014-09-15 23:40:17 +01:00
.gitattributes Ensure that binary file changes are ignored when producing a git diff. 2014-10-15 15:23:59 +01:00
.gitignore Updating .gitignore to ensure no OSX temporary files gets accidentally committed again. 2014-10-02 00:39:14 +01:00
JLinkSettings.ini imported STM32 multiwii port into baseflight dir 2012-02-16 09:39:58 +00:00
LICENSE Updated source files to include the GPL v3 notices. Include a copy of 2014-06-04 16:48:23 +01:00
Makefile Add Blackbox 0.1.0 2014-12-08 22:06:57 +13:00
Notes.md Normalize all the line endings 2014-09-15 23:40:17 +01:00
README.md Add Blackbox 0.1.0 2014-12-08 22:06:57 +13:00
build_docs.sh fixed formatting 2014-09-26 20:14:47 +02:00

README.md

Blackbox flight data recorder port for Cleanflight

Rendered flight log frame

WARNING - This firmware is experimental, and may cause your craft to suddenly fall out of the sky. This port to Cleanflight has only had 3 test flights! No warranty is offered: if your craft breaks, you get to keep both pieces.

Introduction

This is a modified version of Cleanflight which adds a flight data recorder function ("Blackbox"). Flight data information is transmitted over the flight controller's serial port on every control loop iteration to an external logging device to be recorded.

After your flight, you can process the resulting logs on your computer to either turn them into CSV (comma-separated values) or render your flight log as a video.

This is a port of my Blackbox feature for Baseflight, so please follow the instructions there for usage details (just use the Cleanflight firmware from this repository instead of the Baseflight firmware):

https://github.com/thenickdude/blackbox

Instructions which are specific to Cleanflight are included here.

Installation of firmware

Before installing the new firmware onto your Naze32, back up your configuration: Connect to your flight controller using the Cleanflight Configurator , open up the CLI tab and enter "dump" into the box at the bottom and press enter. Copy all of the text that results and paste it into a text document somewhere for safe-keeping.

Click the disconnect button, then on the main page choose the Firmware Flasher option. Tick the box for "Full Chip Erase" (warning, this will erase all your settings!). Click the "Load firmware (local)" button, and select the file cleanflight_NAZE.hex from the obj/ directory. Click the "Flash Firmware" button and wait for it to complete.

Now you need to reload your configuration: Go to the CLI tab and paste in the dump that you saved earlier and press enter, it should execute and restore your settings.

Before you leave the CLI tab, enable the Blackbox feature by typing in feature BLACKBOX and pressing enter. You also need to assign the Blackbox to one of your serial ports. Because it requires a 115200 baud port, the best choice on the Naze32 to use is serial_port_1, which is the two-pin Tx/Rx header in the centre of the board.

Use set serial_port_1_scenario=10 to switch the port to Blackbox-only, or set serial_port_1_scenario=11 to switch it to MSP, CLI, Blackbox and GPS Passthrough (probably the most useful configuration, since this is the port connected to USB and you'll still want to access the CLI over it).

Enter save. Your configuration should be saved and the flight controller will reboot. You're ready to go!

If you ever need to disable the Blackbox (say, for example, to switch to using the serial port for an OSD instead), you can either reflash the stock firmware using the Configurator, or you can just turn off the Blackbox feature by entering feature -BLACKBOX on the CLI tab.

License

This project is licensed under GPLv3.