Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pybot/drivers/motors.py
blob: 02421d97eb084c4cf907e61a2a1edbd3d2a94643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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]