-
Notifications
You must be signed in to change notification settings - Fork 8
Debugging
Hrisabh Yadav edited this page Nov 14, 2025
·
1 revision
Debugging and monitoring functions for system output and OLED display.
Prints message to monitor without newline.
Prints tag followed by integer number.
Prints tag followed by double with specified precision.
Prints message followed by newline.
Prints tag and integer followed by newline.
Prints tag and double with precision followed by newline.
Initializes OLED display for use.
Clears the OLED display.
Prints string at specified position on OLED.
Parameters:
-
col- Column position (starting from 0) -
row- Row position (starting from 0) -
string- Text to display
Associates variable name with integer reference for logging (if BLACKBOX defined).
// Monitor output
Monitor_Print("System: ");
Monitor_Println("Ready");
Monitor_Println("Altitude: ", 150);
Monitor_Println("Voltage: ", 12.45, 2);
// OLED display
Oled_Init();
Oled_Clear();
Oled_Print(0, 0, "MagisV2");
Oled_Print(0, 1, "Battery: 85%");
// Black box logging
#ifdef BLACKBOX
int32_t altitude = 0;
BlackBox_setVar("alt", altitude);
#endifMagisV2 © 2025 Drona Aviation | Licensed under GPL-3.0 | Report Issues