File tree 5 files changed +52
-6
lines changed
crates/connector/src-tauri
5 files changed +52
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ BitsAndDroidsFlightConnector::BitsAndDroidsFlightConnector() {
13
13
BitsAndDroidsFlightConnector::BitsAndDroidsFlightConnector (Serial_ *serial) {
14
14
this ->serial = serial;
15
15
}
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)
17
19
BitsAndDroidsFlightConnector::BitsAndDroidsFlightConnector(
18
20
HardwareSerial *serial) {
19
21
this ->serial = &Serial;
@@ -514,7 +516,18 @@ void BitsAndDroidsFlightConnector::switchHandling() {
514
516
trueVerticalSpeed = cutValue.toInt ();
515
517
break ;
516
518
}
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
+ }
518
531
case 326 : {
519
532
indicatedAirspeed = cutValue.toInt ();
520
533
break ;
@@ -527,7 +540,6 @@ void BitsAndDroidsFlightConnector::switchHandling() {
527
540
indicatedAltitude2 = cutValue.toInt ();
528
541
break ;
529
542
}
530
-
531
543
case 337 : {
532
544
kohlmanAltimeter = cutValue.toInt ();
533
545
break ;
Original file line number Diff line number Diff line change @@ -644,6 +644,7 @@ class BitsAndDroidsFlightConnector {
644
644
BitsAndDroidsFlightConnector ();
645
645
#if defined(ARDUINO_SAM_DUE)
646
646
BitsAndDroidsFlightConnector (Serial_ *serial);
647
+ BitsAndDroidsFlightConnector (HardwareSerial *serial);
647
648
#elif defined(ESP32) || \
648
649
defined ( \
649
650
ESP8266) // This will handle all boards except ESP32 and Arduino Due
@@ -706,6 +707,9 @@ class BitsAndDroidsFlightConnector {
706
707
int getIndicatedAltitudeCalibrated () { return indicatedAltitudeCalibrated; };
707
708
int getIndicatedHeading () { return indicatedHeading; };
708
709
int getIndicatedGPSGroundspeed () { return indicatedGPSGroundspeed; };
710
+ int getVelocityBodyX () { return velocityBodyX; };
711
+ int getVelocityBodyY () { return velocityBodyY; };
712
+ int getVelocityBodyZ () { return velocityBodyZ; };
709
713
int getTrueVerticalSpeed () { return trueVerticalSpeed; };
710
714
int getLastPrefix ();
711
715
@@ -936,6 +940,9 @@ class BitsAndDroidsFlightConnector {
936
940
int indicatedAltitudeCalibrated;
937
941
int indicatedHeading;
938
942
int indicatedGPSGroundspeed;
943
+ int velocityBodyX;
944
+ int velocityBodyY;
945
+ int velocityBodyZ;
939
946
int trueVerticalSpeed;
940
947
941
948
int headingGyro;
Original file line number Diff line number Diff line change 1
1
name =Bits and Droids flight sim library
2
- version =1.6.16
2
+ version =1.6.17
3
3
author =Bits and Droids <
[email protected] >
4
4
maintainer =Bits and Droids <
[email protected] >
5
5
sentence =Use serial communication to control Microsoft Flight Simulator 2020.
Original file line number Diff line number Diff line change 469
469
},
470
470
{
471
471
"simvar" : " VERTICAL SPEED" ,
472
- "metric" : " Feet per second " ,
472
+ "metric" : " Feet per minute " ,
473
473
"update_every" : 10 ,
474
474
"cb_text" : " Vertical speed" ,
475
475
"id" : 330 ,
476
476
"output_type" : " integer" ,
477
477
"category" : " Data"
478
478
},
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
+ },
479
506
{
480
507
"simvar" : " TITLE" ,
481
508
"metric" : " NULL" ,
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 0.9.10 " ,
2
+ "version" : " 0.10.0 " ,
3
3
"build" : {
4
4
"beforeDevCommand" : " pnpm dev" ,
5
5
"beforeBuildCommand" : " pnpm run build" ,
You can’t perform that action at this time.
0 commit comments