Mercurial > public > ostc4
comparison Discovery/Src/t7.c @ 776:45b8f3c2acce
Add support for a configurable compass declination in a range of -99 to 99 degrees.
This allows the displayed compass reading to be configured to take into account the compass declination (difference between the measured magnetic North direction and the actual geographical North direction) that has different values for different locations around the globe. See https://magnetic-declination.com/ for more information. (mikeller)
author | heinrichsweikamp |
---|---|
date | Thu, 18 May 2023 09:49:17 +0200 |
parents | 46c6d2380d4e |
children | 74253a41cf80 |
comparison
equal
deleted
inserted
replaced
775:46c6d2380d4e | 776:45b8f3c2acce |
---|---|
1757 uint8_t i = 0; | 1757 uint8_t i = 0; |
1758 settingsGetPointer()->customtext[60-1] = 0; | 1758 settingsGetPointer()->customtext[60-1] = 0; |
1759 while(settingsGetPointer()->customtext[i] > 0) | 1759 while(settingsGetPointer()->customtext[i] > 0) |
1760 i++; | 1760 i++; |
1761 return i; | 1761 return i; |
1762 } | |
1763 | |
1764 | |
1765 bool isCompassCalibrated(void) | |
1766 { | |
1767 return stateUsed->lifeData.compass_heading != -1; | |
1768 } | 1762 } |
1769 | 1763 |
1770 | 1764 |
1771 static void t7_CcrSummary(SSettings *settings) | 1765 static void t7_CcrSummary(SSettings *settings) |
1772 { | 1766 { |