ASMESDC2018
Public Member Functions | Public Attributes | Protected Attributes | List of all members
OmniRobot Class Reference

#include <OmniRobot.h>

Inheritance diagram for OmniRobot:
Inheritance graph
[legend]
Collaboration diagram for OmniRobot:
Collaboration graph
[legend]

Public Member Functions

 OmniRobot (void)
 Default constructor. More...
 
void runRobotModel (void)
 Executes the robot model based on input from the RC controller. More...
 
void displayRobotState (void)
 Displays the robot state. More...
 
void displayRCChannels (void)
 Displays all the values from the RC controller. More...
 
void updateRCChannels (void)
 Updates the RC controller values. More...
 
void updateLED (void)
 Updates LED colors based on robot state. More...
 

Public Attributes

bool ready = false
 

Protected Attributes

OmniRobotState state
 
RCController6CH rc_controller
 
LED led
 
Motor drive_left
 
Motor drive_right
 
Motor drive_tail
 

Detailed Description

Definition at line 53 of file OmniRobot.h.

Constructor & Destructor Documentation

OmniRobot::OmniRobot ( void  )

Default constructor.

Author
Frederick Wachter
Date
Created: 2018-03-06

Definition at line 15 of file OmniRobot.cpp.

Member Function Documentation

void OmniRobot::displayRCChannels ( void  )

Displays all the values from the RC controller.

Author
Frederick Wachter
Date
Created: 2018-03-06

Definition at line 81 of file OmniRobot.cpp.

void OmniRobot::displayRobotState ( void  )

Displays the robot state.

Author
Frederick Wachter
Date
Created: 2018-03-06

Definition at line 72 of file OmniRobot.cpp.

void OmniRobot::runRobotModel ( void  )

Executes the robot model based on input from the RC controller.

Author
Frederick Wachter
Date
Created: 2018-03-06

Definition at line 27 of file OmniRobot.cpp.

void OmniRobot::updateLED ( void  )

Updates LED colors based on robot state.

Author
Frederick Wachter
Date
Created: 2018-03-06

Definition at line 93 of file OmniRobot.cpp.

void OmniRobot::updateRCChannels ( void  )

Updates the RC controller values.

Author
Frederick Wachter
Date
Created: 2018-03-06

Definition at line 87 of file OmniRobot.cpp.

Member Data Documentation

Motor OmniRobot::drive_left
protected

Definition at line 110 of file OmniRobot.h.

Motor OmniRobot::drive_right
protected

Definition at line 111 of file OmniRobot.h.

Motor OmniRobot::drive_tail
protected

Definition at line 112 of file OmniRobot.h.

LED OmniRobot::led
protected

Definition at line 108 of file OmniRobot.h.

RCController6CH OmniRobot::rc_controller
protected

Definition at line 106 of file OmniRobot.h.

bool OmniRobot::ready = false

Definition at line 56 of file OmniRobot.h.

OmniRobotState OmniRobot::state
protected

Definition at line 104 of file OmniRobot.h.


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