$search
#include <speed.h>
Public Member Functions | |
virtual void | adjust (float speed, float error, float *brake_req, float *throttle_req) |
virtual void | configure (art_pilot::PilotConfig &newconfig) |
virtual void | reset (void) |
SpeedControlMatrix () | |
virtual | ~SpeedControlMatrix () |
Private Attributes | |
boost::shared_ptr< Pid > | velpid_ |
Acceleration matrix speed controller class
Definition at line 81 of file speed.h.
SpeedControlMatrix::SpeedControlMatrix | ( | ) |
SpeedControlMatrix::~SpeedControlMatrix | ( | ) | [virtual] |
SpeedControlMatrix destructor
void SpeedControlMatrix::adjust | ( | float | speed, | |
float | error, | |||
float * | brake_req, | |||
float * | throttle_req | |||
) | [virtual] |
Adjust speed to match goal.
Generate brake and throttle changes from velocity PID controller via an acceleration matrix.
speed | absolute value of current velocity in m/sec | |
error | immediate goal minus speed | |
brake_req | -> previous brake request (input), updated brake request (output). | |
throttle_req | -> previous throttle request (input), updated throttle request (output). |
Implements SpeedControl.
void SpeedControlMatrix::configure | ( | art_pilot::PilotConfig & | newconfig | ) | [virtual] |
void SpeedControlMatrix::reset | ( | void | ) | [virtual] |
boost::shared_ptr<Pid> SpeedControlMatrix::velpid_ [private] |