Skip to content

Commit

Permalink
Fix G1000 managed heading
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Vincent committed Nov 17, 2024
1 parent 8d2adb5 commit b979988
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 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.5.4-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.5.5-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-v2.0.4-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-v2.0.5-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.5.4";
const char* powerLightsVersion = "v1.5.5";
const bool Debug = false;

struct globalVars globals;
Expand Down
7 changes: 5 additions & 2 deletions 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 = "v2.0.4";
const char* versionString = "v2.0.5";

const char* SimVarDefs[][2] = {
// Vars for Jetbridge (must come first)
Expand Down Expand Up @@ -89,6 +89,8 @@ const char* SimVarDefs[][2] = {
{ "Autopilot Altitude Lock Var", "feet" },
{ "Autopilot Altitude Lock Var:3", "feet" },
{ "Autopilot Altitude Lock", "bool" },
{ "Autopilot Nav1 Lock", "bool" },
{ "Gps Drives Nav1", "bool" },
{ "Autopilot Pitch Hold", "bool" },
{ "Autopilot Vertical Hold Var", "feet/minute" },
{ "Autopilot Vertical Hold", "bool" },
Expand Down Expand Up @@ -137,7 +139,6 @@ const char* SimVarDefs[][2] = {
{ "Nav ToFrom:2", "enum" },
{ "Nav Has Localizer:1", "bool" },
{ "Nav Localizer:1", "degrees" },
{ "Gps Drives Nav1", "bool" },
{ "Gps Wp Cross Trk", "meters" },
{ "Adf Radial:1", "degrees" },
{ "Adf Card", "degrees" },
Expand Down Expand Up @@ -251,6 +252,8 @@ WriteEvent WriteEvents[] = {
{ KEY_AP_LOC_HOLD, "AP_LOC_HOLD" },
{ KEY_AP_APR_HOLD_ON, "AP_APR_HOLD_ON" },
{ KEY_AP_APR_HOLD_OFF, "AP_APR_HOLD_OFF" },
{ KEY_AP_NAV1_HOLD_ON, "AP_NAV1_HOLD_ON" },
{ KEY_AP_NAV1_HOLD_OFF, "AP_NAV1_HOLD_OFF" },
{ KEY_AP_PANEL_ALTITUDE_ON, "AP_PANEL_ALTITUDE_ON" },
{ KEY_AUTO_THROTTLE_ARM, "AUTO_THROTTLE_ARM" },
{ KEY_AP_HEADING_SLOT_INDEX_SET, "AP_HEADING_SLOT_INDEX_SET" },
Expand Down
5 changes: 4 additions & 1 deletion power-lights-panel/simvarDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ struct SimVars
double autopilotAltitude = 0;
double autopilotAltitude3 = 0;
double autopilotAltLock = 0;
double autopilotNav1Lock = 0;
double gpsDrivesNav1 = 0;
double autopilotPitchHold = 0;
double autopilotVerticalSpeed = 0;
double autopilotVerticalHold = 0;
Expand Down Expand Up @@ -132,7 +134,6 @@ struct SimVars
double vor2ToFrom = 0;
double navHasLocalizer = 0;
double navLocalizer = 0;
double gpsDrivesNav1 = 0;
double gpsWpCrossTrk = 0;
double adfRadial = 0;
double adfCard = 0;
Expand Down Expand Up @@ -244,6 +245,8 @@ enum EVENT_ID {
KEY_AP_LOC_HOLD,
KEY_AP_APR_HOLD_ON,
KEY_AP_APR_HOLD_OFF,
KEY_AP_NAV1_HOLD_ON,
KEY_AP_NAV1_HOLD_OFF,
KEY_AP_PANEL_ALTITUDE_ON,
KEY_AUTO_THROTTLE_ARM,
KEY_AP_HEADING_SLOT_INDEX_SET,
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.5.4
rel=v1.5.5
mkdir release >/dev/null 2>&1
rm -rf release/$rel >/dev/null 2>&1
mkdir release/$rel
Expand Down

0 comments on commit b979988

Please sign in to comment.