Add compass_orientation (#515)

* add compass_orientation

We have rudimentary compass support in a branch. This would add a setting to correct the output when the sensor is oriented differently than the screen.
pull/516/head
Jonathan Bennett 2024-06-11 12:23:03 -05:00 zatwierdzone przez GitHub
rodzic a641c5ce4f
commit 8c8048798c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 47 dodań i 0 usunięć

Wyświetl plik

@ -650,6 +650,53 @@ message Config {
* Should we wake the screen up on accelerometer detected motion or tap
*/
bool wake_on_tap_or_motion = 10;
enum CompassOrientation {
/*
* The compass and the display are in the same orientation.
*/
DEGREES_0 = 0;
/*
* Rotate the compass by 90 degrees.
*/
DEGREES_90 = 1;
/*
* Rotate the compass by 180 degrees.
*/
DEGREES_180 = 2;
/*
* Rotate the compass by 270 degrees.
*/
DEGREES_270 = 3;
/*
* Don't rotate the compass, but invert the result.
*/
DEGREES_0_INVERTED = 4;
/*
* Rotate the compass by 90 degrees and invert.
*/
DEGREES_90_INVERTED = 5;
/*
* Rotate the compass by 180 degrees and invert.
*/
DEGREES_180_INVERTED = 6;
/*
* Rotate the compass by 270 degrees and invert.
*/
DEGREES_270_INVERTED = 7;
}
/*
* Indicates how to rotate or invert the compass output to accurate display on the display.
*/
CompassOrientation compass_orientation = 11;
}
/*