ctu-mrs / mrs_uav_system

The entry point to the MRS UAV system.
https://ctu-mrs.github.io/
BSD 3-Clause "New" or "Revised" License
436 stars 86 forks source link

Backward incompatibility: updated controller interface, updated thrust curve parametrization #33

Closed klaxalk closed 3 years ago

klaxalk commented 3 years ago

The controller interface was updated. The common handlers now contain the motor thrust curve parameters, gravitational acceleration and a getter for the current estimated UAV mass.

Moreover, the motor thrust curve parametrization is now independent on the number of motors on the UAV. The number of motors is a new parameter within the "motor params" config file. Therefore, the parameters for the same propulsion type can be shared between different UAV types. To update the config file to the new parametrization, do the following:

The old format:

hover_thrust:
  a: 0.175
  b: -0.148
  1. hover_thrust -> motor_params
  2. add n_motors
  3. multiply the old a by sqrt(n_motors)
motor_params:
  n_motors: 8
  a: 0.4949
  b: -0.148