As discussed on the dev call, Leonard’s current limiting, battery voltage scaling (for roll, pitch, yaw) and new thrust curve are in master. This is the first batch of changes from Leonard, there’s another batch related to autotune for yaw coming within the next week.
The relevant parameters are:
Current limiting
MOT_CURR_MAX (default 0=disabled): maximum allowed current in amps. For example I set this to 20 on my IRIS+ and now when I push the throttle to full in stabilize mode it initially draws up to perhaps 25amps but quickly drops back to a steady 20amps where it stays from then onwards.
Battery Voltage Scaling
MOT_THST_BAT_MAX (default 0=disabled): maximum expected battery voltage (i.e. 13V for 3S). Roll, pitch and yaw gains are scaled so that the vehicle will feel like it’s at this voltage even when it has dropped much lower.
MOT_THST_BAT_MIN (default 0=disabled): minimum expected battery voltage (i.e. 10V for 3S). Voltage gains will not be scaled up any further even if the battery voltage drops below this level.
Thrust curve parameters
MOT_THST_EXPO (default 0.5): controls shape of pwm->thrust curve. 0 = linear, 1 = very curved. See attached pics for examples of shape of curve.
MOT_THST_MAX (default 0.95): place where ESCs “top out” (i.e. ESCs don’t produce any additional thrust at very top of their range)
Attitude vs throttle mixing
MOT_THR_LOW_CMP (default 0.5) : controls who is favoured when the stability patch needs to decide between the pilot/autopilot throttle input vs the roll/pitch attitude controller. A very low number favours the pilot’s input and leads to better landings but could result in a flip during aggressive maneuvers in which the pilot pulls the throttle low. A very high number favours the attitude controller which leads to a bounce when landing but very solid attitude control even when throttle is low. We don’t expect people to change this.
-Randy
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I was careful to think about all the other vehicle types including tradheli so I think it’s ok. None of the features will work for tradheli I suspect but if left disabled they should have no effect.
-Randy
I am working on a kalman filter to estimate battery resistance and resting voltage.
--