Skip to content

Commit

Permalink
Merge pull request DCS-Skunkworks#50 from DCSFlightpanels/release-0.3.9
Browse files Browse the repository at this point in the history
Release 0.3.9
  • Loading branch information
talbotmcinnis authored Aug 26, 2023
2 parents 9dfdb45 + 065eec2 commit 327bf22
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions examples/OneOfEverything/OneOfEverything.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ DcsBios::ToggleButton toggleButtonExample("MSG_0", "ARG_0", "ARG_1", PIN_A);
// A dual mode button with a master switch which toggles the function of a physical pit button between two different DCS functions. Think multi-seat aircraft.
DcsBios::DualModeButton dualModeButtonExample(PIN_A, PIN_B, "MSG_INMODE0", "MSG_INMODE1");

DcsBios::PotentiometerEWMA<5, 128, 5> pltEmergWingSweepltLever("PLT_EMERG_WING_SWEEPLT_LEVER", A0, false, 256, 768);

// Switches
////////////
// A standard two position on/off
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ sentence=Connect input and output devices to the DCS: World flight simulator usi
paragraph=DCS-BIOS is a piece of software that can extract data from DCS: World and sends them to an Arduino. It also accepts commands over the serial port. This library talks to DCS-BIOS and allows you to connect any component your Arduino can communicate with to your virtual cockpit.
url=https://github.com/DCSFlightpanels/dcs-bios
category=Other
version=0.3.8
version=0.3.9
6 changes: 6 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.3.9
- Included Addresses.h as an alternative way of including DCS address/mask information. [Documentation needed]. Thanks @maciekish for the contribution!!
- Example of PotentiometerEWMA added to OneOfEverything
- Add support for #define DCSBIOS_DISABLE_SERVO to disable inclusion of servo.h on platforms which don't support it (ESP32)
- Resolved confusing inclusion pattern for USE_MATRIX_SWITCHES, and supported more standardized version DCSBIOS_USE_MATRIX_SWITCHES.

## v0.3.8
- Added input_min and input_max optional parameters to PotentiometerEWMA to allow a user to calibrate their analog inputs if their physical control does not utilize the full range available to the controller.
- Fix Switch2Pos state reset logic, and improve it's internal debounce logic for a few edge cases.
Expand Down
4 changes: 4 additions & 0 deletions src/DcsBios.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,16 @@ do not come with their own build system, we are just putting everything into the
#include "internal/Potentiometers.h"
#include "internal/RotarySyncingPotentiometer.h"
#include "internal/Leds.h"
#ifndef DCSBIOS_DISABLE_SERVO
#include "internal/Servos.h"
#endif
#include "internal/Dimmer.h"
#include "internal/BcdWheels.h"
#include "internal/AnalogMultiPos.h"
#include "internal/RotarySwitch.h"
#if defined(USE_MATRIX_SWITCHES) || defined(DCSBIOS_USE_MATRIX_SWITCHES)
#include "internal/MatrixSwitches.h"
#endif
#include "internal/DualModeButton.h"

namespace DcsBios {
Expand Down
3 changes: 0 additions & 3 deletions src/internal/MatrixSwitches.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef __DCSBIOS_MATRIX_SWITCHES_H
#define __DCSBIOS_MATRIX_SWITCHES_H

#ifdef USE_MATRIX_SWITCHES

#include <math.h>
#include "Arduino.h"
#include "SwitchMatrix.h" // https://github.com/dagoston93/SwitchMatrix
Expand Down Expand Up @@ -112,5 +110,4 @@ namespace DcsBios {
};
typedef Matrix3PosT<> Matrix3Pos;
}
#endif
#endif

0 comments on commit 327bf22

Please sign in to comment.