Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ BitsAndDroidsFlightConnector::BitsAndDroidsFlightConnector() {
BitsAndDroidsFlightConnector::BitsAndDroidsFlightConnector(Serial_ *serial) {
this->serial = serial;
}
#elif defined(ARDUINO_ARCH_ESP32) || defined(ESP8266) || defined(PICO_RP2040)
#endif
#if defined(ARDUINO_ARCH_ESP32) || defined(ESP8266) || defined(PICO_RP2040) || \
defined(ARDUINO_SAM_DUE)
BitsAndDroidsFlightConnector::BitsAndDroidsFlightConnector(
HardwareSerial *serial) {
this->serial = &Serial;
Expand Down Expand Up @@ -514,7 +516,18 @@ void BitsAndDroidsFlightConnector::switchHandling() {
trueVerticalSpeed = cutValue.toInt();
break;
}

case 331: {
velocityBodyX = cutValue.toInt();
break;
}
case 332: {
velocityBodyY = cutValue.toInt();
break;
}
case 341: {
velocityBodyZ = cutValue.toInt();
break;
}
case 326: {
indicatedAirspeed = cutValue.toInt();
break;
Expand All @@ -527,7 +540,6 @@ void BitsAndDroidsFlightConnector::switchHandling() {
indicatedAltitude2 = cutValue.toInt();
break;
}

case 337: {
kohlmanAltimeter = cutValue.toInt();
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ class BitsAndDroidsFlightConnector {
BitsAndDroidsFlightConnector();
#if defined(ARDUINO_SAM_DUE)
BitsAndDroidsFlightConnector(Serial_ *serial);
BitsAndDroidsFlightConnector(HardwareSerial *serial);
#elif defined(ESP32) || \
defined( \
ESP8266) // This will handle all boards except ESP32 and Arduino Due
Expand Down Expand Up @@ -706,6 +707,9 @@ class BitsAndDroidsFlightConnector {
int getIndicatedAltitudeCalibrated() { return indicatedAltitudeCalibrated; };
int getIndicatedHeading() { return indicatedHeading; };
int getIndicatedGPSGroundspeed() { return indicatedGPSGroundspeed; };
int getVelocityBodyX() { return velocityBodyX; };
int getVelocityBodyY() { return velocityBodyY; };
int getVelocityBodyZ() { return velocityBodyZ; };
int getTrueVerticalSpeed() { return trueVerticalSpeed; };
int getLastPrefix();

Expand Down Expand Up @@ -936,6 +940,9 @@ class BitsAndDroidsFlightConnector {
int indicatedAltitudeCalibrated;
int indicatedHeading;
int indicatedGPSGroundspeed;
int velocityBodyX;
int velocityBodyY;
int velocityBodyZ;
int trueVerticalSpeed;

int headingGyro;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Bits and Droids flight sim library
version=1.6.16
version=1.6.17
author=Bits and Droids <info@bitsanddroids.com>
maintainer=Bits and Droids <info@bitsanddroids.com>
sentence=Use serial communication to control Microsoft Flight Simulator 2020.
Expand Down
29 changes: 28 additions & 1 deletion crates/connector/src-tauri/src/events/outputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -469,13 +469,40 @@
},
{
"simvar": "VERTICAL SPEED",
"metric": "Feet per second",
"metric": "Feet per minute",
"update_every": 10,
"cb_text": "Vertical speed",
"id": 330,
"output_type": "integer",
"category": "Data"
},
{
"simvar": "VELOCITY BODY X",
"metric": "Feet per minute",
"update_every": 10,
"cb_text": "Velocity body x",
"id": 331,
"output_type": "integer",
"category": "Data"
},
{
"simvar": "VELOCITY BODY Y",
"metric": "Feet per minute",
"update_every": 10,
"cb_text": "Velocity body y",
"id": 332,
"output_type": "integer",
"category": "Data"
},
{
"simvar": "VELOCITY BODY Z",
"metric": "Feet per minute",
"update_every": 10,
"cb_text": "Velocity body z",
"id": 341,
"output_type": "integer",
"category": "Data"
},
{
"simvar": "TITLE",
"metric": "NULL",
Expand Down
2 changes: 1 addition & 1 deletion crates/connector/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.9.10",
"version": "0.10.0",
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm run build",
Expand Down