47 #include <sys/types.h> 54 #include "rnr/rnrconfig.h" 76 const double LaeThreadWd::ThreadWdPrioDft = 50;
77 const double LaeThreadWd::ThreadWdHzDft = 1.0;
79 double LaeThreadWd::optimizeHz(
const double fWatchDogTimeout)
83 t = fWatchDogTimeout / 2.0 - 0.001;
84 if( t > LaeThreadWd::ThreadWdHzDft )
86 t = LaeThreadWd::ThreadWdHzDft;
Laelaps thread base class interface.
virtual void update()
Update alarm and warning state.
LaeWd & m_hwif
hardware interface
void unlock()
Unlock the I2C bus.
Laelaps tuning data class.
Laelaps battery management and energy monitoring class interface.
void lock()
Lock the I2C bus.
Laelaps WatchDog software class interface.
LaeBattery m_battery
battery and energy monitor
int reload(const LaeTunes &tunes)
Reload tunable paramaters.
virtual void exec()
Execute watchdog task within scheduled cycle.
The <b><i>Laelaps</i></b> namespace encapsulates all <b><i>Laelaps</i></b> related constructs...
Laelaps common utilities.
virtual void exec()
Execute cycle to pet/read/update Watchdog sub-processor.
LaeAlarms m_alarms
alarm monitor
Laelaps built-in Arduino sub-processor.
Laelaps watchdog thread class interface.
Laelaps alarm monitoring class interface.
virtual void update()
Update the energy state for all of the robot's subsystems.
virtual ~LaeThreadWd()
Destructor.
virtual int reload(const LaeTunes &tunes)
Reload with new configuration.
Top-level package include file.