FlightGear next
|
Flip flop implementation for a RS flip flop with dominant RESET. More...
Inherits FGXMLAutopilot::FlipFlopImplementation.
Inherited by FGXMLAutopilot::ClockedFlipFlopImplementation, and FGXMLAutopilot::SRFlipFlopImplementation.
Public Member Functions | |
RSFlipFlopImplementation (bool rIsDominant=true) | |
virtual bool | getState (double dt, DigitalComponent::InputMap input, bool &q) |
evaluates the output state from the input lines | |
![]() | |
virtual | ~FlipFlopImplementation () |
bool | configure (SGPropertyNode &prop_root, SGPropertyNode &cfg) |
configure this component from a property node. | |
virtual bool | isConfigProperty (const std::string &cfg_name) const |
Protected Attributes | |
bool | _rIsDominant |
Additional Inherited Members | |
![]() | |
virtual bool | configure (SGPropertyNode &cfg_node, const std::string &cfg_name, SGPropertyNode &prop_root) |
configure this component from a property node. | |
Flip flop implementation for a RS flip flop with dominant RESET.
RS (reset-set) flip flops act as a fundamental latch. It has two input lines, S (set) and R (reset). Activating the set input sets the output while activating the reset input resets the output. If both inputs are activated, the output is deactivated, too. This is why the RESET line is called dominant. Use a SRFlipFlopImplementation for a dominant SET line.
Logictable | ||
S | R | Q |
false | false | unchanged |
false | true | false |
true | false | true |
true | true | false |
Definition at line 64 of file flipflop.cxx.
|
inline |
Definition at line 68 of file flipflop.cxx.
|
virtual |
evaluates the output state from the input lines
dt | the elapsed time in seconds from since the last call |
input | a map of named input lines |
q | a reference to a boolean variable to receive the output state |
Reimplemented from FGXMLAutopilot::FlipFlopImplementation.
Reimplemented in FGXMLAutopilot::ClockedFlipFlopImplementation, and FGXMLAutopilot::MonoFlopImplementation.
Definition at line 332 of file flipflop.cxx.
|
protected |
Definition at line 66 of file flipflop.cxx.