Changeset 15100 for trunk


Ignore:
Timestamp:
03/18/13 14:54:03 (12 years ago)
Author:
tbretz
Message:
Go to Locked state after a parking command. This is not ideal because it hides the movement, but avoids movements more efficient.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/drivectrl.cc

    r14720 r15100  
    790790    }
    791791
     792    int Park()
     793    {
     794        SendCommand("PREPS Park", false);
     795
     796        // FIXME: Go to locked state only when park position properly reached
     797        return Drive::State::kLocked;
     798    }
     799
    792800    int Resume()
    793801    {
     
    11831191        {
    11841192            if (Time()>fSunRise)
    1185             {
    1186                 SendCommand("PREPS Park", false);
    1187                 return Drive::State::kLocked;
    1188             }
     1193                return Park();
    11891194        }
    11901195
     
    13281333
    13291334        T::AddEvent("PARK", State::kArmed, State::kMoving, State::kTracking, State::kOnTrack, 0x100)
    1330             (bind(&StateMachineDrive::SendCommand, this, "PREPS Park", false))
     1335            (bind(&StateMachineDrive::Park, this))
    13311336            ("Park the telescope");
    13321337
Note: See TracChangeset for help on using the changeset viewer.