Changeset 18787


Ignore:
Timestamp:
03/21/17 14:07:05 (8 years ago)
Author:
(none)
Message:
add start-state kUnknown; print if startflag not at start; rename aux-file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FACT++_lidctrl_usb/src/lidctrl.cc

    r18740 r18787  
    7171        string s(fCollectedBytes.begin(), fCollectedBytes.end());
    7272        int pos=s.find(search_string);
     73        if (pos != 0){
     74            Out() << "TruncateUntilStartFlagFound: pos=" << pos << endl;
     75        }
    7376        // cut off the first 'pos' bytes from fCollectedBytes
    7477        vector<decltype(fCollectedBytes)::value_type>(
     
    155158        fStateOfArduino(State::kOpen),
    156159        fLastStateOfArduino(State::kOpen),
    157         fDim("LID_CONTROL/INNER_MOTOR", "F:1;F:1;F:1;F:1;I:1;I:1",
     160        fDim("LID_CONTROL/MOTORS", "F:1;F:1;F:1;F:1;I:1;I:1",
    158161            "|inner_current_mean[mA]: "
    159162            "|outer_current_mean[mA]: "
     
    240243        T::AddStateName(State::kLowerClosing, "LowerClosing", "lower(left) lid is closing");
    241244        T::AddStateName(State::kUpperClosing, "UpperClosing", "upper(right) lid is closing");
     245        T::AddStateName(State::kUnknown, "Unknown", "Position unknown - arduino just restarted");
    242246
    243247        T::AddEvent("OPEN")(bind(&StateMachineLid::Open, this))("Open Lid");
Note: See TracChangeset for help on using the changeset viewer.