1#ifndef QUADRATIC_THRUST_MODEL_H
2#define QUADRATIC_THRUST_MODEL_H
9namespace quadratic_throttle_model
19double inline throttleToForce(
const MotorParams_t motor_params,
const double throttle) {
21 return motor_params.n_motors * pow((throttle - motor_params.B) / motor_params.A, 2);
24double inline forceToThrottle(
const MotorParams_t motor_params,
const double force) {
26 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