From: Cyrus on
I would like to interface my MATLAB 6DOF flight simulation routine I wrote with a USB joystick, but I do not know how to interface to the joystick. Also, because the simulation will have to run real time, I would need to know a way to make the time step follow an actual physical amount of time, otherwise it will blast through at 10x speed. Finally, I would need to know a way to interrupt the while loop with, say, a keystroke of 'space bar' to terminate.
From: Cyrus on
FYI UPDATE: I got a joystick working using a file from the file exchange server on mathworks. The only thing I need to do now is figure out how to do an interrupt execute on the keyboard, and how to do real time while loop.