Comments (7)
I did not understand very well what the situation is, why would your receiver lose signal? How far did you move away?
Failsafe values are important for real world situations, because everything is dynamic - the rc model is moving away, hiding behind obstacles and so on. But when using with your pc you are more or less unmoving and very close. I don't see how you can lose signal.
Honestly, I don't see the practical benefit of having failsafe with vjoy (or I don't understand your motivation). When playing simulator, every disconnect/unplug/sig loss should be considered abnormal condition - in that case my least problem is that the sticks are not centered. I should resolve the hardware problem in the first place.
It is, of course, possible to implement such a feature, but I don't think it will be of much use.
Can you explain more precisely what is your use case - why failsafes occur? Are you using your tx for simulators? Or are you trying to command something else from greater distance (some kind of home automation)?
from vjoyserialfeeder.
i did not lost signal i purposely turn off my TX , so no failsafe occuration.
I am ok about failsafe , it is kind of useless in the simulator world , a crash is free so ...
The use case was that i play some games (not simulator in particular) with the transmitter as a joystick .
Lets say Arma3 when i am in an helicopter for the exemple.
I may be in an helicopter only 2% of the time , or some round dont even require an helicopter.
Or maybe sometime i will pilot the helicopter the "old" way with the keyboard.
So i turn off transmitter to avoid battery drain ,
by doing so Vjoy is always sending the last received data to the game , so lets say a stick was not centered , or a button to activate some function was not switched back before putting the transmitter asleep , then the game will act as if the command is beeing send .
Lets say some throttle input , so the result will be that if dont turn the transmitter back on to center the stick , the game will see 2 input , Up from the joystick , and down from my keyboard or mouse , the result is that is mess up the command.
With the same TX but direct usb connection , as soon as i unplug usb , the game didnt see anymore input from the joystick since the pheripheral no longer exist , resulting in not messed up command.
I was just about to write that i kind of found a workaround a few moments ago , setting failsafe to "custom" value in opentx , and the custom values set as center on all channels , then as soon as i turn transmitter off every channel go to middle.
So i think it is becoming a no issue , didnt think about that deep enough
from vjoyserialfeeder.
Ok, now I understand much better.
The OpenTX failsafe is very smart idea, I'm glad you figured it out! I am fairly new to RC modelism so I would never thought of this trick :)
So let's consider this solution for the moment. I think it is pretty good and implementing failsafe in vjoyfeeder itself won't bring any additional benefits. Agree?
from vjoyserialfeeder.
Agreed , it will be ok for the moment and maybe forever.
The only downside if there must be one , is if you unplug arduino/receiver , you cant center channel value if you have not turned off TX before , but again a fix for that is to launch Vjoy itself and untick "Enable vJoy" at the bottom , "Enable vJoy" can also be used if you dont want to set failsafe or dont have OpenTx as it will be like disconnecting usb joystick (no more peripheral)
from vjoyserialfeeder.
I might try to reset all axes and buttons of vjoy upon disconnect. There is only one problem: it seems that C# does a very bad job of detecting usb com port disconnects. Look here.
I'll take a look these days and see what can be done.
from vjoyserialfeeder.
so dont use usb detection.
i would use a timer approach , reset timer at every frame , if timer more than 5 sec , then set channel to center , if frame or timer below 5 sec , then go back to normal mode
Just a sugestion , but we can really live without this ;)
from vjoyserialfeeder.
Hi,
I've uploaded a new release. It supports failsafe settings. You can still use your transmitter's failsafe if you need to. Joysticks are also centered on disconnect. You can check it out.
from vjoyserialfeeder.
Related Issues (20)
- Help with Custom Controller Protocol HOT 9
- Facing Connected failsafe serial port read timeout error HOT 4
- Connecting İbus Receiver HOT 2
- not reading serial data HOT 6
- I don't know my problem, there's two of them. HOT 8
- l HOT 21
- Readable map of buttons -> joy pad button HOT 1
- dji rc N1 HOT 6
- Rotatory encoder implementation HOT 3
- vjoy Connected,Failsafe(waiting for serial data) HOT 31
- how to add buttons with your old joystck in vjoy HOT 7
- SERaero serial protocol implementation
- Disappearing port HOT 4
- Raspberry Pi Pico IBUS - Failsafe (Serial Port Read Timeout) HOT 6
- Radiolink T8FB BT usb com not visible in vjoyserialfeeder HOT 10
- Potentiometer value keep changing slightly HOT 1
- vJoySerialFeeder with SBUS is glitching HOT 10
- vJoy does not receive inputs | Arduino HOT 3
- automatic reconnect only works halfway HOT 5
- OPtic 6 to corona cr8d and Nano not getting signal to VJoy HOT 6
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 vjoyserialfeeder.