Skip to content

Commit cd47019

Browse files
App v0.10.0 (#306)
* fixed due serial configuration * Vertical speed fix (#305) * Fixed vertical speed variable * added velocitybody to lib
1 parent 8e491d4 commit cd47019

File tree

5 files changed

+52
-6
lines changed

5 files changed

+52
-6
lines changed

Diff for: crates/connector/src-tauri/connector_library/BitsAndDroidsFlightConnector.cpp

+15-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ BitsAndDroidsFlightConnector::BitsAndDroidsFlightConnector() {
1313
BitsAndDroidsFlightConnector::BitsAndDroidsFlightConnector(Serial_ *serial) {
1414
this->serial = serial;
1515
}
16-
#elif defined(ARDUINO_ARCH_ESP32) || defined(ESP8266) || defined(PICO_RP2040)
16+
#endif
17+
#if defined(ARDUINO_ARCH_ESP32) || defined(ESP8266) || defined(PICO_RP2040) || \
18+
defined(ARDUINO_SAM_DUE)
1719
BitsAndDroidsFlightConnector::BitsAndDroidsFlightConnector(
1820
HardwareSerial *serial) {
1921
this->serial = &Serial;
@@ -514,7 +516,18 @@ void BitsAndDroidsFlightConnector::switchHandling() {
514516
trueVerticalSpeed = cutValue.toInt();
515517
break;
516518
}
517-
519+
case 331: {
520+
velocityBodyX = cutValue.toInt();
521+
break;
522+
}
523+
case 332: {
524+
velocityBodyY = cutValue.toInt();
525+
break;
526+
}
527+
case 341: {
528+
velocityBodyZ = cutValue.toInt();
529+
break;
530+
}
518531
case 326: {
519532
indicatedAirspeed = cutValue.toInt();
520533
break;
@@ -527,7 +540,6 @@ void BitsAndDroidsFlightConnector::switchHandling() {
527540
indicatedAltitude2 = cutValue.toInt();
528541
break;
529542
}
530-
531543
case 337: {
532544
kohlmanAltimeter = cutValue.toInt();
533545
break;

Diff for: crates/connector/src-tauri/connector_library/BitsAndDroidsFlightConnector.h

+7
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ class BitsAndDroidsFlightConnector {
644644
BitsAndDroidsFlightConnector();
645645
#if defined(ARDUINO_SAM_DUE)
646646
BitsAndDroidsFlightConnector(Serial_ *serial);
647+
BitsAndDroidsFlightConnector(HardwareSerial *serial);
647648
#elif defined(ESP32) || \
648649
defined( \
649650
ESP8266) // This will handle all boards except ESP32 and Arduino Due
@@ -706,6 +707,9 @@ class BitsAndDroidsFlightConnector {
706707
int getIndicatedAltitudeCalibrated() { return indicatedAltitudeCalibrated; };
707708
int getIndicatedHeading() { return indicatedHeading; };
708709
int getIndicatedGPSGroundspeed() { return indicatedGPSGroundspeed; };
710+
int getVelocityBodyX() { return velocityBodyX; };
711+
int getVelocityBodyY() { return velocityBodyY; };
712+
int getVelocityBodyZ() { return velocityBodyZ; };
709713
int getTrueVerticalSpeed() { return trueVerticalSpeed; };
710714
int getLastPrefix();
711715

@@ -936,6 +940,9 @@ class BitsAndDroidsFlightConnector {
936940
int indicatedAltitudeCalibrated;
937941
int indicatedHeading;
938942
int indicatedGPSGroundspeed;
943+
int velocityBodyX;
944+
int velocityBodyY;
945+
int velocityBodyZ;
939946
int trueVerticalSpeed;
940947

941948
int headingGyro;

Diff for: crates/connector/src-tauri/connector_library/library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Bits and Droids flight sim library
2-
version=1.6.16
2+
version=1.6.17
33
author=Bits and Droids <[email protected]>
44
maintainer=Bits and Droids <[email protected]>
55
sentence=Use serial communication to control Microsoft Flight Simulator 2020.

Diff for: crates/connector/src-tauri/src/events/outputs.json

+28-1
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,40 @@
469469
},
470470
{
471471
"simvar": "VERTICAL SPEED",
472-
"metric": "Feet per second",
472+
"metric": "Feet per minute",
473473
"update_every": 10,
474474
"cb_text": "Vertical speed",
475475
"id": 330,
476476
"output_type": "integer",
477477
"category": "Data"
478478
},
479+
{
480+
"simvar": "VELOCITY BODY X",
481+
"metric": "Feet per minute",
482+
"update_every": 10,
483+
"cb_text": "Velocity body x",
484+
"id": 331,
485+
"output_type": "integer",
486+
"category": "Data"
487+
},
488+
{
489+
"simvar": "VELOCITY BODY Y",
490+
"metric": "Feet per minute",
491+
"update_every": 10,
492+
"cb_text": "Velocity body y",
493+
"id": 332,
494+
"output_type": "integer",
495+
"category": "Data"
496+
},
497+
{
498+
"simvar": "VELOCITY BODY Z",
499+
"metric": "Feet per minute",
500+
"update_every": 10,
501+
"cb_text": "Velocity body z",
502+
"id": 341,
503+
"output_type": "integer",
504+
"category": "Data"
505+
},
479506
{
480507
"simvar": "TITLE",
481508
"metric": "NULL",

Diff for: crates/connector/src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.10",
2+
"version": "0.10.0",
33
"build": {
44
"beforeDevCommand": "pnpm dev",
55
"beforeBuildCommand": "pnpm run build",

0 commit comments

Comments
 (0)