-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAttitudeControlSystem.h
More file actions
25 lines (20 loc) · 989 Bytes
/
Copy pathAttitudeControlSystem.h
File metadata and controls
25 lines (20 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef ATTITUDE_CONTROL_SYSTEM_H
#define ATTITUDE_CONTROL_SYSTEM_H
#include <vector>
class AttitudeControlSystem {
private:
std::vector<double> reaction_wheel_momentum;
std::vector<double> magnetorquer_dipole;
std::vector<double> thruster_force;
std::vector<double> Kp;
std::vector<double> Kd;
public:
AttitudeControlSystem();
std::vector<double> calculate_control_torque(const std::vector<double>& current_state, const std::vector<double>& desired_state, const std::vector<double>& magnetic_field);
void allocate_control_torque(const std::vector<double>& control_torque, const std::vector<double>& magnetic_field);
void calculate_magnetorquer_dipole(const std::vector<double>& desired_torque, const std::vector<double>& magnetic_field);
std::vector<double> get_reaction_wheel_momentum() const;
std::vector<double> get_magnetorquer_dipole() const;
std::vector<double> get_thruster_force() const;
};
#endif // ATTITUDE_CONTROL_SYSTEM_H