Skip to content

Commit

Permalink
Merge pull request #117 from TobiasE-github/FixRollPitch
Browse files Browse the repository at this point in the history
	modified:   lib/obp60task/PageRollPitch.cpp
  • Loading branch information
norbert-walter authored Nov 20, 2024
2 parents 38dce1a + 87f7579 commit fc935fb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/obp60task/PageRollPitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ bool keylock = false; // Keylock
else{
svalue1 = String(value1/(2*PI)*360,0);
}

if(valid1 == true){
svalue1old = svalue1; // Save the old value
}
// Get boat values for pitch
GwApi::BoatValue *bvalue2 = pageData.values[1]; // Second element in list (xdrPitch)
String name2 = xdrDelete(bvalue2->getName()); // Value name
Expand All @@ -93,6 +95,9 @@ bool keylock = false; // Keylock
else{
svalue2 = String(value2/(2*PI)*360,0);
}
if(valid2 == true){
svalue2old = svalue2; // Save the old value
}

// Optical warning by limit violation
if(String(flashLED) == "Limit Violation"){
Expand Down Expand Up @@ -135,6 +140,8 @@ bool keylock = false; // Keylock
getdisplay().setFont(&DSEG7Classic_BoldItalic20pt7b);
getdisplay().setCursor(10, 65);
getdisplay().print(rolllimit); // Value
//getdisplay().print(svalue1); // Value

getdisplay().setFont(&Ubuntu_Bold12pt7b);
getdisplay().setCursor(10, 95);
getdisplay().print("Limit"); // Name
Expand Down Expand Up @@ -353,6 +360,7 @@ PageDescription registerPageRollPitch(
"RollPitch", // Page name
createPage, // Action
0, // Number of bus values depends on selection in Web configuration
// {"xdrROLL", "xdrPTCH"},// Bus values we need in the page
{"xdrRoll", "xdrPitch"},// Bus values we need in the page
true // Show display header on/off
);
Expand Down

0 comments on commit fc935fb

Please sign in to comment.