controls  3.0.0
ThrusterLookupInterface.h
Go to the documentation of this file.
1 #ifndef CONTROLS_ALLOCATOR_CONFIG_THRUSTER_LOOKUP_INTERFACE_H
2 #define CONTROLS_ALLOCATOR_CONFIG_THRUSTER_LOOKUP_INTERFACE_H
3 
4 #include <cstdint>
5 #include <utility>
6 
15 public:
16  virtual ~ThrusterLookupInterface() = default;
17 
25  virtual std::pair<float, float> getForceLimits(float voltage_v) = 0;
26 
35  virtual int16_t getThrusterCommand(float thrust_N, float voltage_v) = 0;
36 };
37 
38 #endif // CONTROLS_ALLOCATOR_CONFIG_THRUSTER_LOOKUP_INTERFACE_H
Abstract interface for voltage-dependent thruster lookup tables.
Definition: ThrusterLookupInterface.h:14
virtual int16_t getThrusterCommand(float thrust_N, float voltage_v)=0
Converts a desired thrust and voltage to a thruster command value.
virtual ~ThrusterLookupInterface()=default
virtual std::pair< float, float > getForceLimits(float voltage_v)=0
Returns the minimum and maximum achievable thrust at a given voltage.