Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
trap::control::SubsystemEquivalent Class Referenceabstract

#include <subsystem_equivalent.hpp>

Public Member Functions

virtual operator tap::control::Subsystem & ()=0
 

Detailed Description

Allows rail and taproot to mesh susystems more seamlessly without relying on having a subsystem instance.

This allows testing to work better since test instances of classes which inherit from a subsystem or can function as a subsystem (a command must take a IHolonomicSubsystem and not IHolonomicControl due to it needing to register with a subsystem).

The interface must inherit from subsystem, but if it does, then it must have a drivers instance.

There is a cleaner solution: by allowing conversion into a subsystem the interface can provide a command the subsystem for registration but then not require.

It is a pointer because subsytems are passed around via pointers when interacting with traproot.

The fang code does not interact with subsystems as subsystems directly

Member Function Documentation

◆ operator tap::control::Subsystem &()

virtual trap::control::SubsystemEquivalent::operator tap::control::Subsystem & ( )
pure virtual

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