Giter Club home page Giter Club logo

Comments (7)

Cleric-K avatar Cleric-K commented on May 30, 2024

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.

tfoutfou avatar tfoutfou commented on May 30, 2024

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.

Cleric-K avatar Cleric-K commented on May 30, 2024

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.

tfoutfou avatar tfoutfou commented on May 30, 2024

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.

Cleric-K avatar Cleric-K commented on May 30, 2024

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.

tfoutfou avatar tfoutfou commented on May 30, 2024

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.

Cleric-K avatar Cleric-K commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.