Class WatchdogTask

  • All Implemented Interfaces:
    Iarm32, Actionable

    public class WatchdogTask
    extends Task
    Task which periodically resets a flink watchdog subdevice, @see org.deepjava.flink.subdevices.FlinkWatchdog. Control Tasks which for instance run a motor controller may periodically set the variable kick to true. If this does not happen within a predefined time or if this watchdog task itself does not run within the same time span, the watchdog will time out and disable a supervised drive.
    • Field Detail

      • kick

        public boolean kick
        Periodically set to true
    • Constructor Detail

      • WatchdogTask

        public WatchdogTask​(int period,
                            int periodWatchdog)
        Creates a watchdog task with a given period. The watchdog period itself must be slightly higher to prevent unwanted timeouts ion case of large timing jitter of the task periodicity.
        Parameters:
        period - task period in ms
        periodWatchdog - watchdog timeout in ms
    • Method Detail

      • action

        public void action()
        Description copied from class: Task
        Action to be performed by the task
        Specified by:
        action in interface Actionable
        Overrides:
        action in class Task