2
3
4
5
6
7
8
9
10
11
12
13
14
15
17
18
19
20
22#ifndef GNC_CONTROL_PID_ATTITUDE_CONTROL_H
23#define GNC_CONTROL_PID_ATTITUDE_CONTROL_H
25#include "core/macros.h"
26#include "architecture/Tasks.h"
27#include "six_dof_dynamics/Frame.hpp"
28#include "utils/frameutils.hpp"
33
34
35
36
75 PidAttitudeControl() : clockwerk::
Task() {}
76 PidAttitudeControl(clockwerk::
Task &pnt,
int schedule_slot=0,
const std::string &m_name=
"simple_pid_task")
77 : clockwerk::
Task(pnt
, schedule_slot
, m_name
) {}
78 PidAttitudeControl(clockwerk::
Executive &e,
int schedule_slot=0,
const std::string &m_name=
"simple_pid_task")
79 : clockwerk::
Task(e
, schedule_slot
, m_name
) {}
80 virtual ~PidAttitudeControl() {}
Central control mechanism to run simulations and software.
Definition Executive.h:43
Simple attitude controller header file.
Definition PidAttitudeControl.h:37
int execute()
Function to execute the task. All math and calculations should be here.
Definition PidAttitudeControl.cpp:22
This is the base implementation of the task class.
Definition Tasks.h:68
Task()
Default constructor for the task object for simplicity. Note: Masks some functionality and should not...
Definition Tasks.cpp:21
Task(Task &pnt, int slot, const std::string &m_name="Unnamed")
Task-based constructor for the task. Auto-assigns executive.
Definition Tasks.cpp:47
Task(Executive &executive, int slot, const std::string &m_name="Unnamed")
Executive-based constructor for the task.
Definition Tasks.cpp:62
#define SIGNAL(NAME, TYPE, INITIAL_VALUE)
Definition macros.h:87
#define START_PARAMS
Definition macros.h:96
#define CartesianVector3D
Definition macros.h:54
#define END_OUTPUTS
Definition macros.h:90
#define END_PARAMS
Definition macros.h:98
#define QuaternionD
Definition macros.h:78
#define START_OUTPUTS
Definition macros.h:88
#define END_INPUTS
Definition macros.h:94
#define START_INPUTS
Definition macros.h:92
clockwerk::DataIO< clockwerk::Quaternion< double > > error_quat
Definition PidAttitudeControl.h:67
clockwerk::DataIO< double > error_angle
Definition PidAttitudeControl.h:69
clockwerk::DataIO< clockwerk::CartesianVector< double, 3 > > control_cmd
Definition PidAttitudeControl.h:65
clockwerk::DataIO< clockwerk::CartesianVector< double, 3 > > error_omega
Definition PidAttitudeControl.h:71
clockwerk::DataIO< double > K
Definition PidAttitudeControl.h:45
clockwerk::DataIO< double > P
Definition PidAttitudeControl.h:43