mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 06:02:05 +00:00
It was not, in fact, pointing up
This commit is contained in:
parent
c41757c2f4
commit
4089cee59d
@ -58,9 +58,9 @@ void drawCompassNorth(OLEDDisplay *display, int16_t compassX, int16_t compassY,
|
|||||||
|
|
||||||
void drawNodeHeading(OLEDDisplay *display, int16_t compassX, int16_t compassY, uint16_t compassDiam, float headingRadian)
|
void drawNodeHeading(OLEDDisplay *display, int16_t compassX, int16_t compassY, uint16_t compassDiam, float headingRadian)
|
||||||
{
|
{
|
||||||
Point tip(0.0f, 0.5f), tail(0.0f, -0.35f); // pointing up initially
|
Point tip(0.0f, -0.5f), tail(0.0f, 0.35f); // pointing up initially
|
||||||
float arrowOffsetX = 0.14f, arrowOffsetY = 1.0f;
|
float arrowOffsetX = 0.14f, arrowOffsetY = 0.9f;
|
||||||
Point leftArrow(tip.x - arrowOffsetX, tip.y - arrowOffsetY), rightArrow(tip.x + arrowOffsetX, tip.y - arrowOffsetY);
|
Point leftArrow(tip.x - arrowOffsetX, tip.y + arrowOffsetY), rightArrow(tip.x + arrowOffsetX, tip.y + arrowOffsetY);
|
||||||
|
|
||||||
Point *arrowPoints[] = {&tip, &tail, &leftArrow, &rightArrow};
|
Point *arrowPoints[] = {&tip, &tail, &leftArrow, &rightArrow};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user