#include <DroneController.h>
Public Member Functions | |
void | clearTarget () |
DroneController (void) | |
DronePosition | getCurrentTarget () |
ControlCommand | getLastControl () |
TooN::Vector< 4 > | getLastErr () |
void | setTarget (DronePosition newTarget) |
ControlCommand | update (uga_tum_ardrone::filter_stateConstPtr) |
~DroneController (void) | |
Public Attributes | |
double | agressiveness |
double | droneMassInKilos |
double | K_direct |
double | K_rp |
TooN::Vector< 30 > | logInfo |
double | max_gaz_drop |
double | max_gaz_rise |
double | max_rp |
double | max_rp_radians |
double | max_yaw |
ControlNode * | node |
double | rise_fac |
double | xy_damping_factor |
Private Member Functions | |
void | calcControl (TooN::Vector< 4 > new_err, TooN::Vector< 4 > d_error, double yaw, double pitch, double roll) |
Private Attributes | |
ControlCommand | hoverCommand |
TooN::Vector< 4 > | i_term |
TooN::Vector< 4 > | last_err |
ControlCommand | lastSentControl |
double | lastTimeStamp |
bool | ptamIsGood |
double | scaleAccuracy |
TooN::Vector< 4 > | speedAverages |
DronePosition | target |
TooN::Vector< 4 > | targetNew |
double | targetSetAtClock |
bool | targetValid |
Definition at line 59 of file DroneController.h.
DroneController::DroneController | ( | void | ) |
Definition at line 33 of file DroneController.cpp.
DroneController::~DroneController | ( | void | ) |
Definition at line 46 of file DroneController.cpp.
void DroneController::calcControl | ( | TooN::Vector< 4 > | new_err, |
TooN::Vector< 4 > | d_error, | ||
double | yaw, | ||
double | pitch, | ||
double | roll | ||
) | [private] |
Definition at line 148 of file DroneController.cpp.
void DroneController::clearTarget | ( | ) |
Definition at line 130 of file DroneController.cpp.
Definition at line 125 of file DroneController.cpp.
Definition at line 248 of file DroneController.cpp.
TooN::Vector< 4 > DroneController::getLastErr | ( | ) |
Definition at line 244 of file DroneController.cpp.
void DroneController::setTarget | ( | DronePosition | newTarget | ) |
Definition at line 106 of file DroneController.cpp.
ControlCommand DroneController::update | ( | uga_tum_ardrone::filter_stateConstPtr | state | ) |
Definition at line 59 of file DroneController.cpp.
Definition at line 122 of file DroneController.h.
Definition at line 118 of file DroneController.h.
ControlCommand DroneController::hoverCommand [private] |
Definition at line 79 of file DroneController.h.
TooN::Vector<4> DroneController::i_term [private] |
Definition at line 73 of file DroneController.h.
double DroneController::K_direct |
Definition at line 115 of file DroneController.h.
double DroneController::K_rp |
Definition at line 116 of file DroneController.h.
TooN::Vector<4> DroneController::last_err [private] |
Definition at line 74 of file DroneController.h.
Definition at line 62 of file DroneController.h.
double DroneController::lastTimeStamp [private] |
Definition at line 77 of file DroneController.h.
TooN::Vector<30> DroneController::logInfo |
Definition at line 96 of file DroneController.h.
Definition at line 124 of file DroneController.h.
Definition at line 123 of file DroneController.h.
double DroneController::max_rp |
Definition at line 126 of file DroneController.h.
Definition at line 119 of file DroneController.h.
double DroneController::max_yaw |
Definition at line 125 of file DroneController.h.
Definition at line 93 of file DroneController.h.
bool DroneController::ptamIsGood [private] |
Definition at line 84 of file DroneController.h.
double DroneController::rise_fac |
Definition at line 121 of file DroneController.h.
double DroneController::scaleAccuracy [private] |
Definition at line 85 of file DroneController.h.
TooN::Vector<4> DroneController::speedAverages [private] |
Definition at line 75 of file DroneController.h.
DronePosition DroneController::target [private] |
Definition at line 65 of file DroneController.h.
TooN::Vector<4> DroneController::targetNew [private] |
Definition at line 69 of file DroneController.h.
double DroneController::targetSetAtClock [private] |
Definition at line 78 of file DroneController.h.
bool DroneController::targetValid [private] |
Definition at line 66 of file DroneController.h.
Definition at line 127 of file DroneController.h.