Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::Drivers Class Reference

#include <drivers.hpp>

Inheritance diagram for fang::Drivers:
Collaboration diagram for fang::Drivers:

Public Member Functions

 Drivers ()
 
 Drivers (const Drivers &)=delete
 
Driversoperator= (Drivers &)=delete
 
void initializeIo ()
 
void update ()
 
void updateIo ()
 
void motorTimeoutUpdate ()
 
void kill ()
 

Public Attributes

communication::JankyFloatHandler jankyFloatHandler {}
 
communication::CoolSerialUart coolSerialUart
 
- Public Attributes inherited from tap::Drivers
arch::Profiler profiler
 
gpio::Analog analog
 
can::Can can
 
can::CanRxHandler canRxHandler
 
gpio::Digital digital
 
gpio::Leds leds
 
gpio::Pwm pwm
 
communication::serial::RefSerial refSerial
 
communication::serial::Remote remote
 
communication::serial::Uart uart
 
communication::serial::TerminalSerial terminalSerial
 
control::CommandMapper commandMapper
 
control::SchedulerTerminalHandler schedulerTerminalHandler
 
errors::ErrorController errorController
 
motor::DjiMotorTerminalSerialHandler djiMotorTerminalSerialHandler
 
motor::DjiMotorTxHandler djiMotorTxHandler
 
communication::sensors::imu::bmi088::Bmi088 bmi088
 
control::CommandScheduler commandScheduler
 

Friends

class DriversSingleton
 

Additional Inherited Members

- Protected Member Functions inherited from tap::Drivers
 Drivers ()
 

Constructor & Destructor Documentation

◆ Drivers() [1/2]

fang::Drivers::Drivers ( )
inline

◆ Drivers() [2/2]

fang::Drivers::Drivers ( const Drivers )
delete

Member Function Documentation

◆ initializeIo()

void fang::Drivers::initializeIo ( )

◆ kill()

void fang::Drivers::kill ( )
Postcondition
The robot will be unable to move

◆ motorTimeoutUpdate()

void fang::Drivers::motorTimeoutUpdate ( )

These are assocated classes that needs to be called at the same interval as the motors are updated (command scheduler should not spam)

◆ operator=()

Drivers & fang::Drivers::operator= ( Drivers )
delete

◆ update()

void fang::Drivers::update ( )

◆ updateIo()

void fang::Drivers::updateIo ( )

Friends And Related Symbol Documentation

◆ DriversSingleton

friend class DriversSingleton
friend

Member Data Documentation

◆ coolSerialUart

communication::CoolSerialUart fang::Drivers::coolSerialUart
Initial value:
{
*this,
{
{255, std::ref(jankyFloatHandler)}
}
}
communication::JankyFloatHandler jankyFloatHandler
Definition drivers.hpp:36
std::unordered_map< coolSerial::Byte, DataHandlerRef > HandlerMap
Definition cool_serial_uart.hpp:27

◆ jankyFloatHandler

communication::JankyFloatHandler fang::Drivers::jankyFloatHandler {}

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