FlightGear next
FGXMLAutopilot::RSFlipFlopImplementation Class Reference

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
 
- Public Member Functions inherited from FGXMLAutopilot::FlipFlopImplementation
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

- Protected Member Functions inherited from FGXMLAutopilot::FlipFlopImplementation
virtual bool configure (SGPropertyNode &cfg_node, const std::string &cfg_name, SGPropertyNode &prop_root)
 configure this component from a property node.
 

Detailed Description

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
SRQ
falsefalseunchanged
falsetruefalse
truefalsetrue
truetruefalse

Definition at line 64 of file flipflop.cxx.

Constructor & Destructor Documentation

◆ RSFlipFlopImplementation()

FGXMLAutopilot::RSFlipFlopImplementation::RSFlipFlopImplementation ( bool rIsDominant = true)
inline

Definition at line 68 of file flipflop.cxx.

Member Function Documentation

◆ getState()

bool RSFlipFlopImplementation::getState ( double dt,
DigitalComponent::InputMap input,
bool & q )
virtual

evaluates the output state from the input lines

Parameters
dtthe elapsed time in seconds from since the last call
inputa map of named input lines
qa reference to a boolean variable to receive the output state
Returns
true if the state has changed, false otherwise

Reimplemented from FGXMLAutopilot::FlipFlopImplementation.

Reimplemented in FGXMLAutopilot::ClockedFlipFlopImplementation, and FGXMLAutopilot::MonoFlopImplementation.

Definition at line 332 of file flipflop.cxx.

Member Data Documentation

◆ _rIsDominant

bool FGXMLAutopilot::RSFlipFlopImplementation::_rIsDominant
protected

Definition at line 66 of file flipflop.cxx.


The documentation for this class was generated from the following file: