Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
50North4West committed Jan 9, 2022
1 parent 559eeca commit fac66dc
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ class BonanzaHangar extends HTMLElement {
document.getElementById("stateSaving").checked = false;
}

//get the engine hobbs hours
var hobbshours = SimVar.GetSimVarValue('L:G36XIP_HOBBS_START', "number");
this.panelHobbs = hobbshours; //Brand new Aircraft that has had a 45min acceptance flight & 30 minute flight checks prior to ownership

//Send info to the panel - eventually put this in a loop

//set the engine hours
document.getElementById("aircraftEngineHours").innerHTML = parseFloat(this.panelHobbs).toFixed(2);

Expand All @@ -56,14 +50,6 @@ class BonanzaHangar extends HTMLElement {
document.getElementById("aircraftReg").innerHTML = SimVar.GetSimVarValue('ATC ID', "string");
document.getElementById("aircraftLivery").innerHTML = title;

//get the battery voltages
this.bat1volts = SimVar.GetSimVarValue('ELECTRICAL BATTERY VOLTAGE:1', "volts");
//set the battery voltages
document.getElementById("aircraftBatt1Volts").innerHTML = parseFloat(this.bat1volts).toFixed(2);
this.bat1volts = SimVar.GetSimVarValue('ELECTRICAL BATTERY VOLTAGE:2', "volts");
//set the battery voltages
document.getElementById("aircraftBatt2Volts").innerHTML = parseFloat(this.bat1volts).toFixed(2);

}, delayInMilliseconds);

setInterval(function() {
Expand Down

0 comments on commit fac66dc

Please sign in to comment.