Hummingbird Flight Software
Flight software for the Hummingbird FCU quadcopter flight controller. Designed to run on the Teensy 4.1. Developed with VSCode+PlatformIO.
Macros
debugging.h File Reference
#include <Arduino.h>
#include "hummingbird_config.h"

Go to the source code of this file.

Macros

#define DEBUG
 UBER-EXTREME CAUTION SHOULD BE USED CHANGING PARAMETERS IN THIS FILE! More...
 
#define DEBUG_PORT   Serial
 
#define DEBUG_PRINT(msg)   DEBUG_PORT.print(F(msg))
 
#define DEBUG_PRINTF(val, digits)   DEBUG_PORT.print(val, digits)
 
#define DEBUG_PRINTLN(msg)   DEBUG_PORT.println(F(msg))
 
#define DEBUG_PRINTLNF(val, digits)   DEBUG_PORT.println(val, digits)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG

UBER-EXTREME CAUTION SHOULD BE USED CHANGING PARAMETERS IN THIS FILE!

These are debugging variables and macros used to print debugging information to the serial terminal.


ENABLE/DISABLE DEBUG MESSAGES

~~ SUPRESS DEBUG MESSAGES BEFORE FLIGHT! ~~ Uncomment to print debug statements. Comment out to supress messages. Found in debugging.h

◆ DEBUG_PORT

#define DEBUG_PORT   Serial

DEBUG SERIAL/UART INTERFACE

Use the Teensy 4.1's primary serial interface for printing debug messages. Found in debugging.h

◆ DEBUG_PRINT

#define DEBUG_PRINT (   msg)    DEBUG_PORT.print(F(msg))

DEBUG PRINTS

Macros to print messages to the debug port. The F() macro stores messages in flash memory instead of RAM, which should help with storage.

◆ DEBUG_PRINTF

#define DEBUG_PRINTF (   val,
  digits 
)    DEBUG_PORT.print(val, digits)

◆ DEBUG_PRINTLN

#define DEBUG_PRINTLN (   msg)    DEBUG_PORT.println(F(msg))

◆ DEBUG_PRINTLNF

#define DEBUG_PRINTLNF (   val,
  digits 
)    DEBUG_PORT.println(val, digits)