added more setter and getter functions

This commit is contained in:
Roman Bapst 2014-11-05 08:51:12 +01:00
parent c51ec34118
commit 48cdbf3d0c
1 changed files with 12 additions and 7 deletions

View File

@ -76,6 +76,8 @@
#include <systemlib/perf_counter.h>
//#include <systemlib/systemlib.h>
#include <lib/mathlib/mathlib.h>
#include <Eigen/Eigen>
/**
@ -105,6 +107,14 @@ public:
*
* @return OK on success.
*/
void control_attitude(float dt);
void control_attitude_rates(float dt);
// setters and getters for interface with euroc-gazebo simulator
void set_attitude(const Eigen::Quaternion<double> attitude);
void set_attitude_rates(const Eigen::Vector3d& angular_rate);
void set_attitude_reference(const Eigen::Vector4d& control_attitude_thrust_reference);
void get_mixer_input(Eigen::Vector4d& motor_inputs);
void set_actuator_controls();
protected:
@ -161,15 +171,10 @@ protected:
/**
* Attitude rates controller.
*/
void control_attitude(float dt);
void control_attitude_rates(float dt);
void vehicle_attitude_setpoint_poll(); //provisional
// setters and getters for interface with euroc-gazebo simulator
void set_attitude(const Eigen::Quaternion<double>& attitude);
void set_attitude_rates(const Eigen::Vector3d& angular_rate);
void set_attitude_reference(const Eigen::Vector4d& control_attitude_thrust_reference);