Changeset 13975


Ignore:
Timestamp:
05/30/12 11:40:06 (13 years ago)
Author:
tbretz
Message:
Add tracking commands are now also allowed in state kTracking
File:
1 edited

Legend:

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

    r13933 r13975  
    985985             "|Az[deg]:Azimuth");
    986986
    987         T::AddEvent("TRACK", "D:2", State::kArmed)   // ->RADEC/GRB
     987        T::AddEvent("TRACK", "D:2", State::kArmed, State::kTracking)   // ->RADEC/GRB
    988988            (bind(&StateMachineDrive::SendCoordinates, this, placeholders::_1, kTrackSlow))
    989989            ("Move the telescope to the given sky coordinates and start tracking them"
     
    991991             "|Dec[deg]:Declination");
    992992
    993         T::AddEvent("WOBBLE", "D:4", State::kArmed)   // ->RADEC/GRB
     993        T::AddEvent("WOBBLE", "D:4", State::kArmed, State::kTracking)   // ->RADEC/GRB
    994994            (bind(&StateMachineDrive::Wobble, this, placeholders::_1))
    995995            ("Move the telescope to the given wobble position around the given sky coordinates and start tracking them"
     
    999999             "|Angle[deg]:Wobble angle");
    10001000
    1001         T::AddEvent("TRACK_SOURCE", "D:2;C", State::kArmed)   // ->RADEC/GRB
     1001        T::AddEvent("TRACK_SOURCE", "D:2;C", State::kArmed, State::kTracking)   // ->RADEC/GRB
    10021002            (bind(&StateMachineDrive::Track, this, placeholders::_1))
    10031003            ("Move the telescope to the given wobble position around the given source and start tracking"
     
    10061006             "|Name[string]:Source name");
    10071007
    1008         T::AddEvent("MOON", State::kArmed)
     1008        T::AddEvent("MOON", State::kArmed, State::kTracking)
    10091009            (bind(&StateMachineDrive::SendCommand, this, "MOON 0 0", true))
    10101010            ("Start tracking the moon");
    1011         T::AddEvent("VENUS", State::kArmed)
     1011        T::AddEvent("VENUS", State::kArmed, State::kTracking)
    10121012            (bind(&StateMachineDrive::SendCommand, this, "CELEST 2 0 0", true))
    10131013            ("Start tracking Venus");
    1014         T::AddEvent("MARS", State::kArmed)
     1014        T::AddEvent("MARS", State::kArmed, State::kTracking)
    10151015            (bind(&StateMachineDrive::SendCommand, this, "CELEST 4 0 0", true))
    10161016            ("Start tracking Mars");
    1017         T::AddEvent("JUPITER", State::kArmed)
     1017        T::AddEvent("JUPITER", State::kArmed, State::kTracking)
    10181018            (bind(&StateMachineDrive::SendCommand, this, "CELEST 5 0 0", true))
    10191019            ("Start tracking Jupiter");
    1020         T::AddEvent("SATURN", State::kArmed)
     1020        T::AddEvent("SATURN", State::kArmed, State::kTracking)
    10211021            (bind(&StateMachineDrive::SendCommand, this, "CELEST 6 0 0", true))
    10221022            ("Start tracking Saturn");
Note: See TracChangeset for help on using the changeset viewer.