Arduino test » History » Version 1
Einar Pétursson, 2011-02-20 21:49
| 1 | 1 | Einar Pétursson | h1. Arduino test |
|---|---|---|---|
| 2 | |||
| 3 | This packages has three nodes: |
||
| 4 | |||
| 5 | * PyArduino.py |
||
| 6 | * PyPub.py |
||
| 7 | * PySub.py |
||
| 8 | |||
| 9 | *PyArduino:* |
||
| 10 | Subscribes to topic "Motor_speed" |
||
| 11 | Publishes the topic "Sensordata" |
||
| 12 | |||
| 13 | Message types are same as topic name except all lowercase. |
||
| 14 | |||
| 15 | *PyPub* |
||
| 16 | Subscribes to topic "Joy" |
||
| 17 | Publishes the topic "Motor_speed" |
||
| 18 | |||
| 19 | Joy is for input of ps3 joystick |
||
| 20 | |||
| 21 | *PySub* |
||
| 22 | Subscribes to topic "Motor_speed" |
||
| 23 | |||
| 24 | Prints the motor_speed to the screen. used for testing |