Comments (5)
I mean bios appears to be behaving properly. When the lever is moved to the maximum value via bort or any other test tool or command, it does not reset to minimum.
There may be a bug in the arduino library calling bios - I don't know, I don't do any arduino development with bios - so I've moved the issue to that repository so those who are more familiar with this code can evaluate the issue you're experiencing.
from dcs-bios-arduino-library.
for video of the issue, see
https://discord.com/channels/533342958712258572/778893826080374795/1240061403885469716
from dcs-bios-arduino-library.
I am not a C++ programmer, but the following snippets seem to work for me to constrain the values within input_min & input_max :
in Potentiometers.h
....
void pollInput() {
unsigned int state;
if (reverse_)
// psjshep
// state = map(analogRead(pin_), input_min_, input_max_, 65535, 0);
state = map(constrain(analogRead(pin_),input_min_,input_max_), input_min_, input_max_, 65535, 0);
else
// psjshep
// state = map(analogRead(pin_), input_min_, input_max_, 0, 65535);
state = map(constrain(analogRead(pin_),input_min_,input_max_), input_min_, input_max_, 0, 65535);
...
There is similar logic below in the public declaration so I suppose a similar change would be needed there?
from dcs-bios-arduino-library.
Tested with bort and appears to behave as expected. Moving this to the arduino repo
from dcs-bios-arduino-library.
Tested with bort and appears to behave as expected. Moving this to the arduino repo
not sure what you mean by "behave as expected"?
Is the function, when supplied with a min/max, supposed to reset to the minimum when maximum is reached?
Or do you mean the PLT_FLAPS_LEVER call does move the flaps so the call behaves as expected?
from dcs-bios-arduino-library.
Related Issues (20)
- AH-64D Fire panel Cover HOT 2
- Q (bug?): Garbled data on complex sketches - (concurrency?) isssue in DcsBiosNgRS485Slave.cpp.inc HOT 2
- Polling Issue when using latest version of DCS-BIOS v0.3.8 HOT 6
- RS485 with Interrupts
- STM32duino support with RS485
- Bounty: RS485 support on STM32 with the official STM32duino core HOT 1
- MatrixSwitches.h should either be bracketed by #ifdef block in the DcsBios.h, or included by default HOT 1
- TACAN mode selector switch - possible problems with 'new' DCS Dios script HOT 10
- Latest DCS Bios library "servo.h" library incompatible with ESP32 boards HOT 2
- Release to PlatformIO registry
- Syncronization HOT 6
- DCS BIOS FOR STM32 HOT 1
- SwitchMultiPos not correctly accounting for PIN_NC and instead sends the PIN_NC value HOT 2
- Adafruit Qualia pins not working with DCS-BIOS HOT 1
- Problem uploading / verify code to arduino HOT 1
- Addresses.h is outdated
- [BUG] KA-50 Targeting Mode Control Panel - Head-on airborne target button issue
- Question: How to check DCS BIOS Connection state (up/down) HOT 4
- RS485 and MAX7219 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcs-bios-arduino-library.