kopia lustrzana https://github.com/meshtastic/protobufs
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
rodzic
a641c5ce4f
commit
8c8048798c
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Ładowanie…
Reference in New Issue