Skip to content

Commit

Permalink
Update guages for multi-engined aircraft
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Vincent committed Dec 18, 2022
1 parent e7eb7a7 commit 7afd7b7
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

Download the following two files.

Link: [Latest release of Power/Lights Panel for Raspberry Pi Zero W](https://github.com/scott-vincent/power-lights-panel/releases/latest/download/power-lights-panel-v1.3.1-raspi.tar.gz)
Link: [Latest release of Power/Lights Panel for Raspberry Pi Zero W](https://github.com/scott-vincent/power-lights-panel/releases/latest/download/power-lights-panel-v1.3.2-raspi.tar.gz)

Link: [Latest release of Instrument Data Link for Windows](https://github.com/scott-vincent/instrument-data-link/releases/latest/download/instrument-data-link-v1.7.1-windows-x64.zip)
Link: [Latest release of Instrument Data Link for Windows](https://github.com/scott-vincent/instrument-data-link/releases/latest/download/instrument-data-link-v1.7.2-windows-x64.zip)

Unzip instrument-data-link into its own folder and double-click instrument-data-link.exe to run it.

Expand Down
2 changes: 1 addition & 1 deletion power-lights-panel/powerLights-panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "simvars.h"
#include "powerLights.h"

const char* powerLightsVersion = "v1.3.1";
const char* powerLightsVersion = "v1.3.2";
const bool Debug = false;

struct globalVars globals;
Expand Down
18 changes: 17 additions & 1 deletion power-lights-panel/simvarDefs.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <stdio.h>
#include "simvarDefs.h"

const char* versionString = "v1.7.1";
const char* versionString = "v1.7.2";

const char* SimVarDefs[][2] = {
// Vars for Jetbridge (must come first)
Expand Down Expand Up @@ -104,6 +104,7 @@ const char* SimVarDefs[][2] = {
{ "Local Time", "seconds" },
{ "Absolute Time", "seconds" },
{ "Ambient Temperature", "celsius" },
{ "Number Of Engines", "number" },
{ "General Eng Rpm:1", "rpm" },
{ "Eng Rpm Animation Percent:1", "percent" },
{ "General Eng Elapsed Time:1", "hours" },
Expand Down Expand Up @@ -133,14 +134,29 @@ const char* SimVarDefs[][2] = {
{ "Brake Left Position", "percent" },
{ "Brake Right Position", "percent" },
{ "General Eng Oil Temperature:1", "fahrenheit" },
{ "General Eng Oil Temperature:2", "fahrenheit" },
{ "General Eng Oil Temperature:3", "fahrenheit" },
{ "General Eng Oil Temperature:4", "fahrenheit" },
{ "General Eng Oil Pressure:1", "psi" },
{ "General Eng Oil Pressure:2", "psi" },
{ "General Eng Oil Pressure:3", "psi" },
{ "General Eng Oil Pressure:4", "psi" },
{ "General Eng Exhaust Gas Temperature:1", "celsius" },
{ "General Eng Exhaust Gas Temperature:2", "celsius" },
{ "General Eng Exhaust Gas Temperature:3", "celsius" },
{ "General Eng Exhaust Gas Temperature:4", "celsius" },
{ "Engine Type", "enum" },
{ "Max Rated Engine RPM", "rpm" },
{ "Turb Eng N1:1", "percent" },
{ "Turb Eng N1:2", "percent" },
{ "Turb Eng N1:3", "percent" },
{ "Turb Eng N1:4", "percent" },
{ "Prop RPM:1", "rpm" },
{ "Eng Manifold Pressure:1", "inches of mercury" },
{ "Eng Fuel Flow GPH:1", "gallons per hour" },
{ "Eng Fuel Flow GPH:2", "gallons per hour" },
{ "Eng Fuel Flow GPH:3", "gallons per hour" },
{ "Eng Fuel Flow GPH:4", "gallons per hour" },
{ "Suction Pressure", "inches of mercury" },
{ "Sim On Ground", "bool" },
{ "G Force", "gforce"},
Expand Down
26 changes: 21 additions & 5 deletions power-lights-panel/simvarDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ struct SimVars
double dcLocalSeconds = 46800;
double dcFlightSeconds = 0;
double dcTempC = 26.2;
double numberOfEngines = 1;
double rpmEngine = 0;
double rpmPercent = 0;
double rpmElapsedTime = 0;
Expand Down Expand Up @@ -136,15 +137,30 @@ struct SimVars
double rudderPosition = 0;
double brakeLeftPedal = 0;
double brakeRightPedal = 0;
double oilTemp = 0;
double oilPressure = 0;
double exhaustGasTemp = 0;
double oilTemp1 = 0;
double oilTemp2 = 0;
double oilTemp3 = 0;
double oilTemp4 = 0;
double oilPressure1 = 0;
double oilPressure2 = 0;
double oilPressure3 = 0;
double oilPressure4 = 0;
double exhaustGasTemp1 = 0;
double exhaustGasTemp2 = 0;
double exhaustGasTemp3 = 0;
double exhaustGasTemp4 = 0;
double engineType = 0;
double engineMaxRpm = 0;
double turbineEngineN1 = 0;
double turbineEngine1N1 = 0;
double turbineEngine2N1 = 0;
double turbineEngine3N1 = 0;
double turbineEngine4N1 = 0;
double propRpm = 0;
double engineManifoldPressure = 0;
double engineFuelFlow = 0;
double engineFuelFlow1 = 0;
double engineFuelFlow2 = 0;
double engineFuelFlow3 = 0;
double engineFuelFlow4 = 0;
double suctionPressure = 1;
double onGround = 0;
double gForce = 0;
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rel=v1.3.1
rel=v1.3.2
mkdir release >/dev/null 2>&1
rm -rf release/$rel >/dev/null 2>&1
mkdir release/$rel
Expand Down

0 comments on commit 7afd7b7

Please sign in to comment.