mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-18 16:23:07 +01:00
Add magnetic rotation sensor AS5600 for rudder, wind, keel and trimm angle
This commit is contained in:
@@ -154,7 +154,7 @@ public:
|
|||||||
display.setFont(&Ubuntu_Bold12pt7b);
|
display.setFont(&Ubuntu_Bold12pt7b);
|
||||||
display.setCursor(175, 110);
|
display.setCursor(175, 110);
|
||||||
display.print(unit1); // Unit
|
display.print(unit1); // Unit
|
||||||
|
/*
|
||||||
// Angle limits to +/-45°
|
// Angle limits to +/-45°
|
||||||
if(value1 < (-PI / 4)){
|
if(value1 < (-PI / 4)){
|
||||||
value1 = -PI / 4;
|
value1 = -PI / 4;
|
||||||
@@ -165,7 +165,7 @@ public:
|
|||||||
|
|
||||||
// Calculate keel position
|
// Calculate keel position
|
||||||
value1 = (value1 * 2) + PI;
|
value1 = (value1 * 2) + PI;
|
||||||
|
*/
|
||||||
// Draw keel position pointer
|
// Draw keel position pointer
|
||||||
float startwidth = 8; // Start width of pointer
|
float startwidth = 8; // Start width of pointer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user