FlySpark logo
FlySpark logoFlySparkINAV setup guidesUpdated

Eight INAV debug values

The Debug tab is an INAV screen. It shows what the flight controller is writing into its eight debug values, and it lets you pick the debug mode that fills them. Betaflight does not have this tab. On Betaflight the debug mode is a choice on the configuration tab, and the sensors graph draws the channels.

The values are debug[0] through debug[7]. Each one is a signed 32-bit number. The tab reads them with MSP2_INAV_DEBUG while the tab is open, at 10 Hz. Pause freezes the traces. Leave the tab and the live update stops.

The line that says Mode in use is the mode already saved on the board. Picking another name does not change those eight numbers until you save and the flight controller reboots.

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 Debug tab is INAV only. It graphs eight debug values at 10 Hz while the tab is open. A new debug mode is written into those values only after you save and the board reboots.

Key facts

  • The Debug tab is INAV only. Betaflight picks its debug mode on the configuration tab.
  • It shows eight debug values, debug[0] to debug[7], as signed 32-bit numbers.
  • The sensors graph on INAV shows only the first four, cut to 16 bits.
  • The trace is live at 10 Hz while this tab is open. Pause freezes it.
  • The mode in use is the saved one. A new choice waits for save and a reboot.
  • The names come from the firmware. An unknown index is shown as Mode N.
  • A build with no debug_mode setting says so, and there is no list to pick.
  • 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

Change the mode

The eight numbers stay on the saved mode until you save and reboot.

Mode in use: NONE

0 0 0 0 0 0 0 0

FlySpark

Features

  • 01

    Eight values

    debug[0] to debug[7], each a signed 32-bit number. The row updates at 10 Hz while this tab stays open.

  • 02

    The saved mode

    Mode in use is the mode last saved. The list you are editing does not take over until save and a reboot.

  • 03

    Names from the firmware

    The choices are the debug_mode list on this build. An index the list does not name is shown as Mode N.

  • 04

    Pause

    Pause freezes the eight traces where they are. Resume continues at 10 Hz. Pause does not change the mode.

  • 05

    Four on the sensors tab

    The sensors graph on INAV uses the older debug message: the first four values, cut to 16 bits. This tab shows all eight.

  • 06

    No setting

    A firmware with no debug_mode setting says so. There is no list, and the eight values have no mode name to follow.

What the eight numbers are

INAV keeps eight debug slots. The debug mode decides what the firmware writes into them, and the same choice feeds the debug fields of a blackbox log. The footer on the tab says that in one sentence: the mode picks what the flight controller writes into the eight debug values and the blackbox debug fields.

This tab reads all eight as signed 32-bit numbers. The sensors tab is a different graph. On INAV that graph asks for the older debug message, which carries only the first four values and cuts each one to 16 bits. If a number looks clipped on Sensors and whole on Debug, that is the difference between the two messages, not two modes.

The sample rate here is fixed at 10 Hz, and only while the tab is open. It is not the 10, 20 or 50 Hz choice on the sensors tab. Pause holds the last samples. Resume starts the 10 Hz updates again. The traces keep about the last 150 samples, and a quiet line sits near zero when the mode is writing nothing.

NONE is the first name on the INAV 8 list. Other names on that list include GPS, LANDING, ALTITUDE and DYN_GYRO_LPF. The tab does not hard-code them. It shows the lookup that came from the board. If the saved index is outside that lookup, the label is Mode and the number, not a guessed name.

Save, then reboot, before the trace changes

The mode shown as in use is the value read from the board, not the row you just highlighted. Change the choice, and the eight traces keep drawing the old mode. Save, let the flight controller reboot, and come back. The new mode is then the one in use, and the numbers follow it.

That reboot is the save for this tab. The board drops off and comes back, the same way other INAV settings that need a restart do. Reading the tab during the reboot just waits. When the board is up, Mode in use should be the name you saved.

A build that has no debug_mode setting cannot offer the list. The tab says this firmware has no debug_mode setting. The eight values can still be drawn, but there is no mode name to change.

Blackbox is where those same debug fields are stored for a flight, on the craft. This tab is the live look while you are connected. The log viewer opens the file afterwards. Use a mode only when you mean to read those fields. Leave it on NONE when you are done, then save and reboot, so later logs are not full of a test you have finished.

Betaflight is a different screen

Betaflight has no Debug tab in FlySpark. Its debug mode is on the configuration tab, the same names as set debug_mode in the CLI, and the sensors graph draws up to eight channels from the older debug message. Do not look for this INAV list on a Betaflight board.

Chrome or Edge connects over USB or Bluetooth. Android adds Wi-Fi. iPhone uses Bluetooth or Wi-Fi and has no USB host. The debug tab needs an INAV board on that link. The 10 Hz updates are light, so Bluetooth can carry them, but a noisy link will skip samples the same way any other live graph does.

FlySpark

Read INAV debug values

  1. Open Debug

    Connect an INAV board and open Debug. Mode in use is the mode already saved.

  2. Watch the eight values

    debug[0] to debug[7] update at 10 Hz while the tab is open. Pause freezes them.

  3. Pick a mode

    Choose a name from the firmware list. The traces stay on the old mode until you save.

  4. Save and reboot

    Save, wait for the reboot, and open the tab again. Mode in use should be the name you saved.

Troubleshooting

Common problems and fixes

  • Problem

    The traces ignore the mode I picked

    Fix

    Mode in use is the saved mode. Save and let the board reboot. The new mode is used only after that.

  • Problem

    The tab says there is no debug_mode setting

    Fix

    This firmware build has no debug_mode. There is no list to change until a build that includes it is on the board.

  • Problem

    Sensors shows fewer debug channels

    Fix

    On INAV the sensors graph is the first four values, at 16 bits. This tab shows all eight, at 32 bits.

  • Problem

    The numbers stop when I leave the tab

    Fix

    The 10 Hz updates run while this tab is open. Come back to Debug and they start again. Pause also freezes them.

FAQ

Frequently asked questions

What does the INAV Debug tab show?

Eight debug values, debug[0] to debug[7], live at 10 Hz while the tab is open. It also sets debug_mode.

Does Betaflight have this tab?

No. Betaflight debug mode is on the configuration tab. This Debug tab is INAV only.

When does a new debug mode take effect?

After you save and the flight controller reboots. Until then, Mode in use stays on the mode already saved.

How many debug values are there?

Eight, each a signed 32-bit number. The sensors graph on INAV shows only the first four, cut to 16 bits.

What is the sample rate?

10 Hz, and only while this tab is open. Pause freezes the traces. It is not the sensors rate buttons.

Where do the mode names come from?

The debug_mode list on this firmware. An index that list does not name is shown as Mode and the number.

What if the firmware has no debug mode?

The tab says this firmware has no debug_mode setting. There is no list to pick.

Are these the blackbox debug fields?

The same mode fills them. This tab is the live view. The blackbox file is what you open later in the log viewer.

What does NONE mean?

NONE is the first mode on the INAV 8 list. It is the mode to save when you no longer want debug numbers in the log.

Can I open this in Chrome?

Yes, on an INAV board. 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. INAV WikiINAV on GitHub · github.com
  2. Betaflight WikiBetaflight · betaflight.com
  3. INAV ConfiguratorINAV on GitHub · github.com

Tools

See every FlySpark tool

  • 01FlySpark 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
  • 02FlySpark logo

    FlySpark

    Board alignment and arming

    Set board alignment, the arming angle, gyro calibration and the feature switches. The demo blocks arming when the craft is tilted past 25 degrees.

    Learn more
  • 03FlySpark logo

    FlySpark

    Blackbox rate and flash

    Set the Betaflight blackbox rate and where the log is stored. A faster rate fills the onboard flash sooner, and the rate locks while you are armed.

    Learn more
  • 06FlySpark logo

    FlySpark

    INAV programming logic conditions

    Set INAV logic conditions, eight global variables and four programming PIDs. Compare sticks, flight data and modes, then override throttle or a channel.

    Learn more

Ready to try it?

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