Hummingbird Flight Software
Flight software for the Hummingbird FCU quadcopter flight controller. Designed to run on the Teensy 4.1. Developed with VSCode+PlatformIO.
include
debugging.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// DEBUGGING TOOL DEFINITIONS
3
//
4
// Code By: Michael Wrona
5
// Created: 28 Aug 2021
6
// ----------------------------------------------------------------------------
15
#pragma once
16
#include <Arduino.h>
17
#include "
hummingbird_config.h
"
18
19
28
#define DEBUG
29
37
#define DEBUG_PORT Serial
38
46
#ifdef DEBUG
47
#define DEBUG_PRINT(msg) DEBUG_PORT.print(F(msg))
// Print message to debug terminal
48
#define DEBUG_PRINTF(val, digits) DEBUG_PORT.print(val, digits)
// Print float value to debug terminal
49
#define DEBUG_PRINTLN(msg) DEBUG_PORT.println(F(msg))
// Print message to debug terminal with newline
50
#define DEBUG_PRINTLNF(val, digits) DEBUG_PORT.println(val, digits)
// Print float to debug terminal with newline
51
#else
52
#define DEBUG_PRINT(msg)
// Print message to debug terminal. Blank macro because debuggng is disabled.
53
#define DEBUG_PRINTF(val, digits)
// Print float value to debug terminal. Blank macro because debuggng is disabled.
54
#define DEBUG_PRINTLN(msg)
// Print message to debug terminal with newline. Blank macro because debuggng is disabled.
55
#define DEBUG_PRINTLNF(val, digits)
// Print float to debug terminal with newline. Blank macro because debuggng is disabled.
56
#endif
hummingbird_config.h
Generated by
1.9.1