diff options
Diffstat (limited to 'pybot/drivers/motors.py')
-rw-r--r-- | pybot/drivers/motors.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pybot/drivers/motors.py b/pybot/drivers/motors.py new file mode 100644 index 0000000..02421d9 --- /dev/null +++ b/pybot/drivers/motors.py @@ -0,0 +1,27 @@ + +RD_VERSION = 0x00 +SET_VEL_2MTR = 0x01 +SET_VEL_MTR = 0x02 + +f1 = { + 'name': 'getVersion', + 'call': RD_VERSION, + 'params': 0, + 'read': 3 +} + +f2 = { + 'name': 'setvel2mtr', + 'call': SET_VEL_2MTR, + 'params': 6, + 'read': 1 +} + +f3 = { + 'name': 'setvelmtr', + 'call': SET_VEL_MTR, + 'params': 4, + 'read': 1 +} + +FUNCTIONS = [f1, f2, f3] |