A simple logic class writing <condition> to a property.
More...
#include <logic.hxx>
Inherits FGXMLAutopilot::DigitalComponent.
Inherited by FGXMLAutopilot::FlipFlop.
|
void | update (bool firstTime, double dt) |
| pure virtual function to be implemented by the derived classes.
|
|
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.
|
|
virtual void | disabled (double dt) |
| overideable method being called from the update() method if this component is disabled.
|
|
|
typedef std::map< const std::string, DigitalOutput_ptr > | OutputMap |
|
InputMap | _input |
| Named input "pins".
|
|
OutputMap | _output |
| Named output "pins".
|
|
bool | _inverted |
| Global "inverted" flag for the outputs.
|
|
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.
|
|
A simple logic class writing <condition> to a property.
Definition at line 35 of file logic.hxx.
◆ get_input()
bool Logic::get_input |
( |
| ) |
const |
◆ get_output()
bool Logic::get_output |
( |
| ) |
const |
◆ set_output()
void Logic::set_output |
( |
bool | value | ) |
|
◆ staticSubsystemClassId()
static const char * FGXMLAutopilot::Logic::staticSubsystemClassId |
( |
| ) |
|
|
inlinestatic |
◆ update()
void Logic::update |
( |
bool | firstTime, |
|
|
double | dt ) |
|
protectedvirtual |
pure virtual function to be implemented by the derived classes.
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
-
firstTime | set to true if this is the first update call since this component has been enabled. Set to false for every subsequent call. |
dt | the elapsed time since the last call |
Implements FGXMLAutopilot::Component.
Definition at line 58 of file logic.cxx.
The documentation for this class was generated from the following files: