Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
tap::control::SafeDisconnectFunction Class Reference

#include <command_scheduler.hpp>

Public Member Functions

 SafeDisconnectFunction ()
 
virtual bool operator() ()
 

Detailed Description

Abstract base class for a functor that defines how a robot is considered "disconnected" in the CommandScheduler. When the functor returns true, the robot is then considered disconnected and will end all Commands in the CommandScheduler and disallow new Commands from being added.

By default, the SafeDisconnectFunction will always return false, i.e., allow the CommandScheduler to continue running Commands in a "disconnected" state.

Constructor & Destructor Documentation

◆ SafeDisconnectFunction()

tap::control::SafeDisconnectFunction::SafeDisconnectFunction ( )
inline

Member Function Documentation

◆ operator()()

virtual bool tap::control::SafeDisconnectFunction::operator() ( )
inlinevirtual

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