Skip to content

Commit

Permalink
change gui alert by gui log
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Cesar authored and Julio Cesar committed May 24, 2024
1 parent c6202b1 commit c904801
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tabs/calibration.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,19 @@ TABS.calibration.initialize = function (callback) {
const yawBoxIsEmpty = $('[name=YawFixedDegrees]').val().length === 0;

if (yawBoxIsEmpty) {
GUI.alert("Heading box value is empty!");
GUI.log("Heading box value is empty!");
return;
}

if (!(FC.GPS_DATA.fix >= 2)) {
//GUI.alert("GPS without 3D Fix!");
//return;
GUI.log("GPS without 3D Fix!");
return;
}

const yawBoxValue = parseInt($('[name=YawFixedDegrees]').val());

if (yawBoxValue > 360) {
GUI.alert("Value Min = 0 and Max = 360");
GUI.log("Heading box value Min = 0 and Max = 360");
return;
}

Expand Down

0 comments on commit c904801

Please sign in to comment.