2
#get a positive value for acceleration
3
# >128 indicates acceleration
5
#produce a braking value
6
# <128 indicates brakes
7
# we need to reverse the sense of the axis
10
#note that accelerating and braking at
11
# the same time results in no action
12
# but cannot be resolved here