Add magnetic rotation sensor AS5600 for rudder, wind, keel and trimm direction
This commit is contained in:
parent
5e61754b08
commit
ddf62c0c23
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue