LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
RobotLocation Class Reference

Localizes the robot's location relative to its start position using changes in encoder values. Uses arcs to approximate path. More...

#include <RobotLocation.h>

Inheritance diagram for RobotLocation:
Collaboration diagram for RobotLocation:

Public Member Functions

void Update ()
 Calculates the new position of the robot.
 
double GetX ()
 Get the x position of the robot relative to the zeroed location.
 
double GetY ()
 Get the y position of the robot relative to the zeroed location.
 
double GetTheta ()
 Gets the angle of the robot relative to the zeroed angle.
 
void Zero ()
 Sets the current position and angle of the robot as zero.
 
void Log ()
 Logs values to the log file.
 
void Send ()
 Sends location data to the network.
 

Static Public Member Functions

static void Periodic (void *param)
 Periodically called by notifier to update.
 

Additional Inherited Members

- Protected Member Functions inherited from Loggable
template<typename T >
void LogToFile (T *field, std::string name)
 Saves a variable to the Logger for logging.
 
template<typename T >
void LogToFile (T *field, int count, std::string name)
 Saves a dynamically allocated array to the Logger for logging.
 
template<typename T >
void LogToFile (T value, std::string name)
 Saves a value to the Logger for logging.
 
- Protected Member Functions inherited from LiveNetworkSendable
template<typename T >
void SendToNetwork (T value, std::string key, std::string table)
 Sends a value to the network through LiveNetworkSender.
 

Detailed Description

Localizes the robot's location relative to its start position using changes in encoder values. Uses arcs to approximate path.

Member Function Documentation

double RobotLocation::GetTheta ( )

Gets the angle of the robot relative to the zeroed angle.

Returns
angle of the robot
double RobotLocation::GetX ( )

Get the x position of the robot relative to the zeroed location.

Returns
x position
double RobotLocation::GetY ( )

Get the y position of the robot relative to the zeroed location.

Returns
y position

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