Home ยป Release notes 0.8.5

Release notes 0.8.5

by Bits and Droids
2 comments

In this release, a new set of variables have been released for you to display. Show off those fuel meters and start building your yokes. The yoke’s current implementation isn’t final and will undergo quite some finetuning before I would call it done.

Yoke

The base for controlling a yoke has been made. You can control a yoke with 2 potentiometers. 1 for the Y- and 1 for the X-Axis. You can control the yoke with just 1 line of code.

#include<BitsAndDroidsFlightConnector.h>
BitsAndDroidsFlightConnector connector(false);
void setup() {
  Serial.begin(115200);
}

void loop() {

  connector.sendSetYokeAxis(A0, false, A1, false, 0, 1023);
  connector.sendSetYokeAxis(A0, true, A1, true, 0, 1023);
  // The parameters required can be found between the () in the line below
  // connector.sendSetYokeAxis(byte elevatorPin, bool reversedElevator, byte aileronPin, bool reversedAileron, int minVal, int maxVal)

}

New retrievable values

You can now retrieve a large set of fuel variables. There is also a stray value in there to see if the parking brake is engaged.

FunctionReturn type
getParkingBrakeIndicator()  bool 
getFuelTankCenterLevel()  byte 
getFuelTankCenter2Level()  byte 
getFuelTankCenter3Level()  byte 
getFuelTankLeftMainLevel()  byte 
getFuelTankLeftAuxLevel()  byte 
getFuelTankLeftTipLevel()  byte 
getFuelTankRightMainLevel()  byte 
getFuelTankRightAuxLevel()  byte 
getFuelTankRightTipLevel()  byte 
getFuelTankExternal1Level()  byte 
getFuelTankExternal2Level()  byte 
getFuelTankCenter()  int 
getFuelTankCenter2() int 
getFuelTankCenter3()int 
getFuelTankLeftMainCapacity() int 
getFuelTankLeftAuxCapacity()  int 
getFuelTankLeftTipCapacity()  int 
getFuelTankRightMainCapacity()  int 
getFuelTankRightAuxCapacity()  int 
getFuelTankRightTipCapacity()  int 
getFuelTankExternal1Capacity()  int 
getFuelTankExternal2Capacity() int 
getFuelTankLeftCapacity()  float 
getFuelTankRightCapacity()  float 
getFuelTankCenterQuantity() int 
getFuelTankCenter2Quantity()  int 
getFuelTankCenter3Quantity() int 
getFuelTankLeftMainQuantity()int 
getFuelTankLeftAuxQuantity()int 
getFuelTankLeftTipQuantity()int 
getFuelTankRightMainQuantity()int 
getFuelTankRightAuxQuantity()int 
getFuelTankRightTipQuantity()int 
getFuelTankExternal1Quantity()int 
getFuelTankExternal2Quantity()int 
getFuelTankLeftQuantity()float 
getFuelTankRightQuantity()float 
getFuelTankTotalQuantity()int 

You may also like

2 comments

jph1ll1ps June 17, 2021 - 9:53 am

This is an interesting project.. and i am considering this for the support of some of the switches and controls… specifically i am interested in Matrixed panels – like numeric pads for radio freq settings and also something like ATC acknowledgements. i see you support the ATC in the documentation – but can i add a matrix keypad and use your code/libraries etc?

Bits and Droids June 17, 2021 - 10:21 am

Yes you can! Just code up the keypad and let the buttons trigger certain actions.

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept