Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Vincent committed Jul 10, 2024
1 parent 0faed17 commit 68a1202
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 20 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 Radio Panel for Raspberry Pi Zero W](https://github.com/scott-vincent/radio-panel/releases/latest/download/radio-panel-v1.5.0-raspi.tar.gz)
Link: [Latest release of Radio Panel for Raspberry Pi Zero W](https://github.com/scott-vincent/radio-panel/releases/latest/download/radio-panel-v1.5.1-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.0-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.1-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 radio-panel/radio-panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "simvars.h"
#include "radio.h"

const char* radioVersion = "v1.5.0";
const char* radioVersion = "v1.5.1";
const bool Debug = false;

struct globalVars globals;
Expand Down
2 changes: 1 addition & 1 deletion radio-panel/settings/radio-panel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Data Link": {
"Host": "192.168.1.143",
"Host": "192.168.1.80",
"Port": 52020
},
"GPIO": {
Expand Down
5 changes: 1 addition & 4 deletions radio-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.0";
const char* versionString = "v2.0.1";

const char* SimVarDefs[][2] = {
// Vars for Jetbridge (must come first)
Expand Down Expand Up @@ -368,10 +368,7 @@ WriteEvent WriteEvents[] = {
{ EVENT_LANDING_PREPARE_CABIN, "EVENT_LANDING_PREPARE_CABIN" },
{ EVENT_SEATS_FOR_LANDING, "EVENT_SEATS_FOR_LANDING" },
{ EVENT_GO_AROUND, "EVENT_GO_AROUND" },
{ EVENT_IS_CESSNA_152, "EVENT_IS_CESSNA_152" },
{ EVENT_NOT_CESSNA_152, "EVENT_NOT_CESSNA_152" },
{ EVENT_RESET_DRONE_FOV, "EVENT_RESET_DRONE_FOV" },
{ SWITCHBOX_JOY, "SWITCHBOX_JOY" },
{ VJOY_BUTTONS, "VJOY_BUTTONS" },
{ VJOY_BUTTON_1, "VJOY_BUTTON_1" },
{ VJOY_BUTTON_2, "VJOY_BUTTON_2" },
Expand Down
3 changes: 0 additions & 3 deletions radio-panel/simvarDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,7 @@ enum EVENT_ID {
EVENT_LANDING_PREPARE_CABIN,
EVENT_SEATS_FOR_LANDING,
EVENT_GO_AROUND,
EVENT_IS_CESSNA_152,
EVENT_NOT_CESSNA_152,
EVENT_RESET_DRONE_FOV,
SWITCHBOX_JOY,
VJOY_BUTTONS,
// Buttons must start from 1 and must be sequential until VJOY_BUTTONS_END
VJOY_BUTTON_1,
Expand Down
17 changes: 9 additions & 8 deletions radio-panel/simvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void resetConnection(simvars* thisPtr)

// Want full data on first connect
request.wantFullData = 1;
nextFull = globals.dataRateFps * 2;
nextFull = globals.dataRateFps * 13;

globals.dataLinked = false;
globals.connected = false;
Expand Down Expand Up @@ -165,13 +165,14 @@ void dataLink(simvars* thisPtr)

while (!globals.quit) {
// Poll instrument data link
if (nextFull > 0) {
nextFull--;
request.wantFullData = 0;
} else {
nextFull = globals.dataRateFps * 2;
request.wantFullData = 1;
}
//if (nextFull > 0) {
// nextFull--;
// request.wantFullData = 0;
//} else {
// nextFull = globals.dataRateFps * 2;
// request.wantFullData = 1;
//}
request.wantFullData = 1;
bytes = sendto(sockfd, (char*)&request, sizeof(request), 0, (SOCKADDR*)&addr, sizeof(addr));

if (bytes > 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.5.0
rel=v1.5.1
mkdir release >/dev/null 2>&1
rm -rf release/$rel >/dev/null 2>&1
mkdir release/$rel
Expand Down

0 comments on commit 68a1202

Please sign in to comment.