FlightGear next
FGXMLAutopilot::FlipFlop Class Reference

A simple flipflop implementation. More...

#include <flipflop.hxx>

Inherits FGXMLAutopilot::Logic.

Static Public Member Functions

static const char * staticSubsystemClassId ()
 
- Static Public Member Functions inherited from FGXMLAutopilot::Logic
static const char * staticSubsystemClassId ()
 

Protected Member Functions

virtual bool configure (SGPropertyNode &cfg_node, const std::string &cfg_name, SGPropertyNode &prop_root)
 Over-rideable hook method to allow derived classes to refine top-level node parsing.
 
void update (bool firstTime, double dt)
 Implementation of the pure virtual function of the Component class.
 
- Protected Member Functions inherited from FGXMLAutopilot::Logic
void update (bool firstTime, double dt)
 pure virtual function to be implemented by the derived classes.
 
- Protected Member Functions inherited from FGXMLAutopilot::Component
virtual void disabled (double dt)
 overideable method being called from the update() method if this component is disabled.
 

Additional Inherited Members

- Public Types inherited from FGXMLAutopilot::DigitalComponent
typedef std::map< const std::string, DigitalOutput_ptrOutputMap
 
- Public Member Functions inherited from FGXMLAutopilot::Logic
bool get_input () const
 
void set_output (bool value)
 
bool get_output () const
 
- Public Member Functions inherited from FGXMLAutopilot::DigitalComponent
 DigitalComponent ()
 
- Public Member Functions inherited from FGXMLAutopilot::Component
 Component ()
 A constructor for an empty Component.
 
virtual ~Component ()
 virtual destructor to clean up resources
 
void update (double dt) override
 
virtual bool configure (SGPropertyNode &prop_root, SGPropertyNode &cfg)
 configure this component from a property node.
 
bool isPropertyEnabled ()
 check if this component is enabled as configured in the <enable> section
 
- Protected Attributes inherited from FGXMLAutopilot::DigitalComponent
InputMap _input
 Named input "pins".
 
OutputMap _output
 Named output "pins".
 
bool _inverted
 Global "inverted" flag for the outputs.
 
- Protected Attributes inherited from FGXMLAutopilot::Component
bool _debug
 debug flag, true if this component should generate some useful output on every iteration
 
bool _honor_passive
 a (historic) flag signalling the derived class that it should compute it's internal state but shall not set the output properties if /autopilot/locks/passive-mode is true.
 

Detailed Description

A simple flipflop implementation.

Definition at line 68 of file flipflop.hxx.

Member Function Documentation

◆ configure()

bool FlipFlop::configure ( SGPropertyNode & cfg_node,
const std::string & cfg_name,
SGPropertyNode & prop_root )
protectedvirtual

Over-rideable hook method to allow derived classes to refine top-level node parsing.

Parameters
aName
aNode
Returns
true if the node was handled, false otherwise.

Reimplemented from FGXMLAutopilot::DigitalComponent.

Definition at line 405 of file flipflop.cxx.

◆ staticSubsystemClassId()

static const char * FGXMLAutopilot::FlipFlop::staticSubsystemClassId ( )
inlinestatic

Definition at line 72 of file flipflop.hxx.

◆ update()

void FlipFlop::update ( bool firstTime,
double dt )
protectedvirtual

Implementation of the pure virtual function of the Component class.

Gets called from the update method if it's not disabled with the firstTime parameter set to true if this is the first call after being enabled

Parameters
firstTimeset to true if this is the first update call since this component has been enabled. Set to false for every subsequent call.
dtthe elapsed time since the last call

Implements FGXMLAutopilot::Component.

Definition at line 475 of file flipflop.cxx.


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