Fixed fake fermi chopper direction and initialised speed to zero.

This commit is contained in:
Ferdi Franceschini
2013-05-08 07:59:34 +10:00
parent 50dbadc811
commit 3a18a61479

View File

@@ -74,10 +74,11 @@ _TEST_MODE = 1 << 15
# Mode values
_RPM = 0
_PHASE = 1
# Direction
# Direction
# NOTE: Chopper manual defines CW looking from below the chopper.
_CW = 0
_CCW = 1
_POSDIR = _CCW
_POSDIR = _CW
# Some descriptive names for default register values per chopper.
# The values are indexed by UID.
RVAL = {
@@ -128,7 +129,7 @@ class Fermi_Prot(LineReceiver):
self.RegVal[uid] = {
10: sys_stat,
12: 0x0,
14: 1000,
14: 0,
16: 0,
18: 0,
20: 0,