bass pumped wrote:
Hi all,
I'm sending joystick input through Simulink in Matlab to Flightgear
using the Native-ctrls structure. I am able to control everything
pretty satisfactorily, everything except the throttle... its gone
digital on me!!! It fluctuates between a one and a zero in almost a
random manner when I vary the slider on the joystick. I know I've
setup the input data right... its scaled between one and zero. I know
I'm sending the right data in the right slot since the throttle varies
only if I place that input data there and it doesn't vary anywhere
else. I've used to a port sniffer to read the packets as they are
sent, and even there it seems perfect.
Is there anyway at all that I can fix this?
Throttle should be no different from any other value. There is probalby
internal code clamping this to the range of 0.0 - 1.0 so if your numbers are
coming through garbage and random, you might see this effect. If it was me,
I'd insert some debugging code in src/Networks/native_ctrls.cxx where the
incoming throttle data is processed to see exactly what is coming in. Perhaps
something isn't getting byte swapped correctly or you are off by a byte or two
in alignment?
Curt.
--
Curtis Olson http://www.flightgear.org/~curt
HumanFIRST Program http://www.humanfirst.umn.edu/
FlightGear Project http://www.flightgear.org
Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d