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

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