1#ifndef QUADRATIC_THRUST_MODEL_H
2#define QUADRATIC_THRUST_MODEL_H
9 namespace quadratic_throttle_model
19 double inline throttleToForce(
const MotorParams_t motor_params,
const double throttle)
22 return motor_params.n_motors * pow((throttle - motor_params.B) / motor_params.A, 2);
25 double inline forceToThrottle(
const MotorParams_t motor_params,
const double force)
28 return sqrt(force / motor_params.n_motors) * motor_params.A + motor_params.B;
All mrs_lib functions, classes, variables and definitions are contained in this namespace.
Definition attitude_converter.h:24
Definition quadratic_throttle_model.h:13