![]() |
#2
|
|||
|
|||
You can get the joystick position and convert it to a string and output that to the file
Code:
joy_pos = str(joy.getPosition()) # Create the output string out = str('current position' + '\t' + joy_pos + '\n') # Write the string to the output file file.write(out) # Makes sure the file data is really written to the harddrive file.flush() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Crashing when I select Tracker option | GoldenSun | Vizard | 4 | 07-01-2008 11:06 AM |
Flagging the Data | Elittdogg | Vizard | 5 | 04-11-2008 11:40 AM |
Writing text files with executable | adimov | Vizard | 1 | 03-21-2008 03:21 PM |
Get position data in an own little program | Researcher | Precision Position Tracker (PPT) | 2 | 02-01-2006 02:55 AM |
problem with joystick data and input dialog box | baf1 | Vizard | 4 | 03-03-2005 08:00 AM |