#robotics Logs
Jun 04 2015
#robotics Calendar
00:51 rue_shop2 yes, I think I took one apart once
07:35 veverak have you ever heard
07:35 veverak about something for python, that can work with usb gamepads
07:35 veverak like pygame.joystick
07:36 veverak but got some way to report events?
07:45 deshipu pygame.joystick does have events
07:50 veverak pl
07:50 veverak I see now
07:51 veverak now
07:51 veverak let's explore how to connect that with my library
07:53 veverak nah, can't watch events with fileno :/
07:56 veverak so either second thread and local pipe() or timer()
07:56 zaxxon python-inotify? (assuming linux)
07:57 veverak nah
07:57 veverak zaxxon: my library can wathc fileno() events
07:57 veverak that's not the problem
07:57 veverak it's just that pygame doesn't have fileno() for events :)
07:57 veverak I have to check if there is event
07:58 zaxxon k
07:58 veverak timer it is than
08:01 veverak or
08:01 veverak nah, second thread
08:05 veverak second thread, queue and I will use my events library functionality to run callback from different thread
09:57 veverak hmm, easire than I thought, like really
15:42 _moon can anyone tell me the address s' of the dos interupt tablr and/or the realmode interupt table
16:12 theBear holy crap ! i coulda maybe 20 years ago, yer a bit late
16:12 _moon ha is that so
16:13 _moon i gueese thats old biz now is it
16:18 deshipu let me get that book
16:19 deshipu _moon: the interrupt vector table starts, surprisingly, at 0:0
16:19 deshipu until 40:0
16:22 _moon i have a book that says its at zero aswell
16:22 _moon but i tought i should see a bunch of jmp s' when i dump the mem but i dont
16:24 deshipu jmps?
16:24 deshipu no, it's just a table of 4-byte addresses
16:25 deshipu you jump to them with 'int'
16:25 _moon OOOO
16:25 _moon oh
16:25 _moon ok n jump instructions
16:25 _moon just adress for use by referance
16:25 _moon ?
16:26 deshipu well, 'int 21' will jump to the 21st address in that table
16:26 deshipu and return
16:26 deshipu it's like a subroutine
16:26 _moon like a call?
16:26 deshipu yes
16:26 _moon ok thanks for the clarity
16:26 deshipu you also often set some values in the registers beforehand
16:26 _moon :)
16:26 _moon kinda like arguments hay?
16:26 deshipu it's like passing parameters
16:27 _moon ah
16:27 deshipu right
16:27 _moon cool
16:27 deshipu the interrupt 21, in particular, has a lot of subprocedures
16:27 deshipu it's the DOS interrupt
16:27 _moon ?
16:28 deshipu it has functions like manipulating files and such
16:28 _moon ok
16:28 deshipu the int 10 is for setting graphics modes
16:28 deshipu or was it 13?
16:29 deshipu I can't remember
16:29 _moon :P
16:29 deshipu I'm sure you can find it on wikipedia
16:29 _moon ok
16:30 _moon i was trying to compile something out of my book with NASM and when i ran the program the machine WIGED OUT
16:30 _moon i suspect i might of been trying to execute a object file though
16:30 _moon see i did not link it but its my first day back on a dos machine in 10 years or so
17:03 veverak hmm
17:03 veverak imagine, you got brain of robot
17:03 veverak and you need to test it osmething
17:03 veverak what would be easiest way, of launching something 3D wher I could move with some object?
17:04 veverak I mean, let's say I have rover
17:04 veverak so I need 3D window with vector that changes it's size (rover speed) and direction based on what I send him
17:04 veverak (literally I will send it 'servo angles' I send into servo controller)
17:11 deshipu veverak: gazebo
17:13 veverak deshipu: exactly!
17:15 veverak deshipu: tips for tutorial?
17:15 veverak it looks complicated
17:15 veverak :D
17:19 veverak got it!
17:34 deshipu veverak: sorry, never used it
19:02 veverak k
19:02 veverak now I really don't get how to use it, but nah, will figure out!
22:28 _moon awak rue?
22:28 _moon awake*
22:54 _moon Rue