Changeset 14953


Ignore:
Timestamp:
02/25/13 11:29:29 (12 years ago)
Author:
tbretz
Message:
Added the possibility to send OPEN and CLOSE even if the status of the lids is not precisely known.
File:
1 edited

Legend:

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

    r14680 r14953  
    547547
    548548        T::AddStateName(Lid::State::kUnknown, "Unknown",
    549                      "Arduino resports both lids in an unknown status");
     549                     "Arduino reports at least one lids in an unknown status");
    550550
    551551        T::AddStateName(Lid::State::kClosed, "Closed",
     
    565565             "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data");
    566566
    567         T::AddEvent("OPEN", Lid::State::kInconsistent, Lid::State::kClosed)
     567        T::AddEvent("OPEN", Lid::State::kInconsistent, Lid::State::kUnknown, Lid::State::kClosed)
    568568            (bind(&StateMachineLidControl::Open, this))
    569569            ("Open the lids");
    570570
    571         T::AddEvent("CLOSE", Lid::State::kInconsistent, Lid::State::kOpen)
     571        T::AddEvent("CLOSE", Lid::State::kInconsistent, Lid::State::kUnknown, Lid::State::kOpen)
    572572            (bind(&StateMachineLidControl::Close, this))
    573573            ("Close the lids");
Note: See TracChangeset for help on using the changeset viewer.