FlySpark logo
FlySpark logoFlySparkBetaflight setup guidesUpdated

Record a CSV log

The Logging tab records live flight-controller data into a CSV file on the phone or computer you are using. It is a spreadsheet log of the link, not the blackbox file stored on the craft.

You pick what to record, pick how often, and press Start logging. With nothing picked, the button says Pick at least one item and does not start. The interval begins at 100 ms.

The rate is limited by the connection. Bluetooth carries far fewer samples per second than USB. For a detailed look at a flight, use a blackbox log and the log viewer instead.

Free. Hardware connections need Chrome or Edge on a computer; phones use the FlySpark app.

  • Free
  • Nothing to install
  • Demo without hardware

In short

The Logging tab writes flight-controller readings to a CSV file on this device. Pick at least one group, then start. The interval begins at 100 ms, and a blackbox log is the tool for a detailed flight.

Key facts

  • Eight groups: IMU, attitude, altitude, GPS, battery, sticks, motors and debug.
  • Start stays off until at least one group is picked. The button then says Start logging.
  • Intervals are 10, 20, 30, 40, 50, 100, 250, 500, 1000, 2000 and 5000 ms. The start is 100 ms.
  • The choice and the interval lock while a recording is running.
  • Each row starts with a timestamp. The header is written once the first readings arrive.
  • Recording continues on other tabs and stops when the flight controller disconnects.
  • Bluetooth carries fewer samples than USB. A blackbox log is for detailed flight analysis.
  • Chrome or Edge uses USB or Bluetooth. iPhone has no USB host.
  • Betaflight logoBetaflight
  • INAV logoINAV
  • ArduPilot logoArduPilot
  • PX4 logoPX4
  • BLHeli_S
  • Bluejay logoBluejay
  • AM32 logoAM32
  • ExpressLRS logoExpressLRS
  • EdgeTX logoEdgeTX
  • DroneCAN logoDroneCAN
  • MAVLink logoMAVLink

Try it

Record a row

Nothing is saved until you pick a column. 100 ms is where the recorder starts.

Idle

0 samples

Pick at least one item

FlySpark

Features

  • 01

    Eight things to record

    IMU, attitude, altitude, GPS, battery, sticks, motors and debug. Each switch names the MSP message and how many columns it adds.

  • 02

    Nothing until you pick

    The recorder starts empty. Start logging stays unavailable until one group is on. Stop logging ends the file.

  • 03

    100 ms to start

    Intervals run from 10 ms to 5000 ms. A new recording uses 100 ms. The interval cannot change while the file is open.

  • 04

    One row per tick

    Each row begins with a millisecond timestamp, then the latest value of every column you picked. The header is written once.

  • 05

    It keeps going

    Recording continues if you open another tab. It stops when the flight controller disconnects.

  • 06

    A file you can share

    Saved CSVs stay on this device. Share one to open it on a computer. Swipe left to delete. The list shows up to 30 files.

What each switch puts in the file

MSP_RAW_IMU adds nine columns: gyroscope X Y Z, accelerometer X Y Z, and magnetometer X Y Z. Gyro is degrees per second and acceleration is in g, the same units the sensors tab draws.

MSP_ATTITUDE adds three columns, kinematics X Y Z, in degrees. MSP_ALTITUDE adds one column, altitude, in metres. MSP_RAW_GPS adds seven: fix, satellite count, latitude, longitude, altitude, speed and ground course.

MSP_ANALOG adds voltage, amperage, mAh drawn and RSSI. MSP_RC adds the stick channels, RC0 onward. Motors are eight columns. The switch calls them Mot1 to Mot8, and the CSV header names them Motor0 onward. MSP_DEBUG adds Debug0 to Debug3.

Turn on only what you need. Every extra group is another request on the link. A gyro-only file is much smaller than a file that also asks for GPS, sticks and motors.

How fast the rows arrive

The interval list is 10, 20, 30, 40, 50, 100, 250, 500, 1000, 2000 and 5000 milliseconds. The tab opens at 100 ms, which is 10 rows a second when the link can keep up. 10 ms asks for 100 rows a second. 5000 ms is one row every five seconds.

The dropdown and the switches lock while a recording is running. Stop logging first if you want a different interval or a different set of columns. A new file then starts with the new header.

The card on the tab says the rate is limited by the connection, and Bluetooth manages far fewer samples per second than USB. A 10 ms interval on Bluetooth will not produce 100 rows a second. Use USB in Chrome or Edge when you want the short intervals. On Bluetooth, 100 ms or slower is the honest place to start.

The first rows wait until every group you picked has answered. The recorder shows Waiting for the first readings until then, and it writes the header only after that. A short or odd reply keeps the previous sample instead of breaking the file.

The file on this device

Samples saved counts the rows written. The log file name appears once recording starts. REC and a minutes-and-seconds clock sit on the card. Recording continues if you switch to Sensors or Modes. It stops when the flight controller disconnects, so a dropped Bluetooth link ends the file.

CSV logs on this device lists the files already saved. An empty list says No logs yet. Share a log to open it on a computer. Swipe left to delete one, except the file that is recording now. The list shows up to 30 files.

This CSV is not a blackbox log. Blackbox is the high-rate log on the flight controller's flash, SD card or a serial logger, and the log viewer opens that. The Logging tab is the live link, written here, for a spreadsheet. Use blackbox when you need the detail of a flight.

Open the CSV in a spreadsheet and read the header first. timestamp is the first column, in milliseconds. After that come only the groups you left on, in the order IMU, attitude, altitude, GPS, battery, sticks, motors, debug. A gyro that sits near zero in that file is the same quiet board the sensors tab shows.

Where the recorder runs

Chrome or Edge connects over USB or Bluetooth. Android adds Wi-Fi. iPhone uses Bluetooth or Wi-Fi and has no USB host, so an iPhone log is a Bluetooth or Wi-Fi log and will carry fewer samples than a USB log on a computer.

The same eight groups are on Betaflight and on INAV. The file is still a CSV on this device either way. Props can stay on, because this tab does not spin motors. It does use the live link, so leave the craft still if you are trying to read a quiet gyro.

FlySpark

Record a CSV

  1. Connect

    Open Logging on a connected board. USB carries more samples than Bluetooth.

  2. Pick columns

    Turn on at least one group. With none on, the button says Pick at least one item.

  3. Set the interval

    Leave 100 ms, or pick another step from 10 ms to 5000 ms, before you start.

  4. Start, then stop

    Start logging writes the CSV. Stop logging closes it. Share the file to open it on a computer.

Troubleshooting

Common problems and fixes

  • Problem

    Start logging does nothing

    Fix

    No group is selected. The button reads Pick at least one item until you turn one on.

  • Problem

    The interval will not change

    Fix

    It locks while recording. Stop logging, then pick a new interval. The new file gets a new header.

  • Problem

    Bluetooth saves fewer rows than the interval suggests

    Fix

    The link is the limit. Bluetooth carries far fewer samples than USB. Use 100 ms or slower, or move to USB.

  • Problem

    The file is not a blackbox log

    Fix

    This CSV is the live link, saved on this device. Detailed flight analysis uses a blackbox log in the log viewer.

FAQ

Frequently asked questions

What does the Betaflight Logging tab record?

A CSV on this device, from the live link. It is not the blackbox file stored on the craft.

Which values can I include?

IMU, attitude, altitude, GPS, battery, sticks, motors and debug. Each one adds its own columns.

Why will it not start?

Nothing is selected. The button says Pick at least one item until you turn a group on.

What is the sample interval?

10, 20, 30, 40, 50, 100, 250, 500, 1000, 2000 or 5000 ms. A new recording starts at 100 ms.

Can I change columns while it is recording?

No. The switches and the interval lock until you stop. The next file uses the new choice.

What is in each row?

A millisecond timestamp, then the latest value of every column you picked. The header is written once the first readings arrive.

Does recording stop if I change tabs?

No. It continues on other tabs. It stops when the flight controller disconnects.

Why is Bluetooth slower?

The connection limits the rate. Bluetooth carries far fewer samples per second than USB. Short intervals need USB.

Where is the detailed flight log?

Blackbox, on the craft, opened in the log viewer. This tab says to use blackbox for detailed flight analysis.

Can I record in Chrome?

Yes. Chrome or Edge uses USB or Bluetooth. Android adds Wi-Fi. iPhone uses Bluetooth or Wi-Fi and has no USB host.

References

Sources

The official documentation behind the background facts on this page.

  1. Betaflight WikiBetaflight · betaflight.com
  2. Betaflight Setup GuideBetaflight · betaflight.com
  3. INAV WikiINAV on GitHub · github.com

Tools

See every FlySpark tool

  • 02FlySpark logo

    FlySpark

    Live gyro and accelerometer

    Watch the live gyro, accelerometer and barometer. A still gyro sits near zero degrees per second, and 20 Hz suits a Bluetooth link on the bench.

    Learn more
  • 03Betaflight logo

    Betaflight

    Betaflight battery settings

    Set the Betaflight battery meter: voltage source, current source, cell warning voltages and pack capacity, then scale the sensor on the Power tab.

    Learn more
  • 05Betaflight logo

    Betaflight

    Betaflight GPS setup and GPS Rescue

    Turn on Betaflight or INAV GPS, set the u-blox options, and set Betaflight GPS Rescue return, descent and sanity checks in the browser or the app.

    Learn more

Ready to try it?

Free. Hardware connections need Chrome or Edge on a computer; phones use the FlySpark app.