mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-17 15:27:29 +00:00
I thought git would be smart enough to understand all the whitespace changes but even with all the flags I know to make it ignore theses it still blows up if there are identical changes on both sides.
I have a solution but it require creating a new commit at the merge base for each conflicting PR and merging it into develop.
I don't think blowing up all PRs is worth for now, maybe if we can coordinate this for V3 let's say.
This reverts commit 0d11331d18.
34 lines
1000 B
C++
34 lines
1000 B
C++
#pragma once
|
|
|
|
#include "graphics/Screen.h"
|
|
#include "mesh/generated/meshtastic/mesh.pb.h"
|
|
#include <OLEDDisplay.h>
|
|
#include <OLEDDisplayUi.h>
|
|
|
|
namespace graphics
|
|
{
|
|
|
|
/// Forward declarations
|
|
class Screen;
|
|
|
|
/**
|
|
* @brief Compass and navigation drawing functions
|
|
*
|
|
* Contains all functions related to drawing compass elements, headings,
|
|
* navigation arrows, and location-based UI components.
|
|
*/
|
|
namespace CompassRenderer
|
|
{
|
|
// Compass drawing functions
|
|
void drawCompassNorth(OLEDDisplay *display, int16_t compassX, int16_t compassY, float myHeading, int16_t radius);
|
|
void drawNodeHeading(OLEDDisplay *display, int16_t compassX, int16_t compassY, uint16_t compassDiam, float headingRadian);
|
|
void drawArrowToNode(OLEDDisplay *display, int16_t x, int16_t y, int16_t size, float bearing);
|
|
|
|
// Navigation and location functions
|
|
float estimatedHeading(double lat, double lon);
|
|
uint16_t getCompassDiam(uint32_t displayWidth, uint32_t displayHeight);
|
|
|
|
} // namespace CompassRenderer
|
|
|
|
} // namespace graphics
|