#FPV Drone Simulator

1 messages · Page 1 of 1 (latest)

novel jetty
#

Working on a Drone Simulator..
At the same time playing around with the new input system and reading inputs from an RC Radio..
So far soo good. I finally got some of the Inputs working.
Having an input device with switches/ gimbals/ and potentiometers is something crazy..

#
    private float NormalizeInput(float inputValue)
    {
        var zeroToOne = Mathf.InverseLerp(-0.72f,0.72f,inputValue);
        return zeroToOne;
    }```

still gotta do some work tho, b/c im using some magic numbers to get the inputs I need..
the radio starts at -.72 with the gimbal all the way down.. but I think its firmware in the radio itself.. theres dead-space at the end and beginning of the input

- Im thinking perhaps a little calibration prompt so I can get the full range before hand.. and use that for the `InverseLerp`
#

not sure how to get the potentiometers to work.. not seeing them show up in the Input Debugger

novel jetty
dusky pumice
#

This er, drone simulator

#

is it in the modern sense of drone usage, @novel jetty?

novel jetty
#

gonna try

#

found some PID controllers i probably need

dusky pumice
#

or just flying around

#

I think I already saw a similar one on steam

novel jetty
#

just prototyping for now.. not sure what ill do with it.. but right now im just trying to figure out some good physics