branch for tests with T265
Dependencies: Lib_Cntrl AHRS Lib_Misc
Diff: Copter_Specific/Motor_Characteristics.h
- Revision:
- 2:e7874762cc25
- Parent:
- 0:a479dc61e931
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Copter_Specific/Motor_Characteristics.h Mon Oct 21 17:16:11 2019 +0000 @@ -0,0 +1,29 @@ +#include "mbed.h" +#include "define_constants.h" +#include "LinearCharacteristics.h" + +#ifndef MOTOR_CHARACTERISTICS_H_ +#define MOTOR_CHARACTERISTICS_H_ + + +class Motor_Characteristics{ +public: + + Motor_Characteristics(uint8_t type); + virtual ~Motor_Characteristics(); + float dummy; + float F2n(float); + float M2n(float); + float n_max; + float kF; + float kM; + LinearCharacteristics n2pwm; + void calc_n2pwm_8k4(void); + void calc_n2pwm_9k5(void); +private: + float alpha_F; + float alpha_M; + +}; + +#endif \ No newline at end of file