Skip to content

Commit

Permalink
[rotorcraft] MOTOR_MIXING_MAX_SATURATION_OFFSET defaults to 10%
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Feb 13, 2014
1 parent 5ce3896 commit c1c25c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sw/airborne/subsystems/actuators/motor_mixing.c
Expand Up @@ -47,8 +47,14 @@
#define MOTOR_MIXING_STOP_MOTOR -MAX_PPRZ
#endif

/**
* Maximum offset in case of saturation.
* If a saturation is reached (desired motor command outside of possible MIN_MOTOR/MAX_MOTOR range),
* this saturation_offset is applied to all motors in order to give attitude commands a higher priority than thrust.
* This setting limits the saturation_offset. Default is 10% of maximum command.
*/
#ifndef MOTOR_MIXING_MAX_SATURATION_OFFSET
#define MOTOR_MIXING_MAX_SATURATION_OFFSET MAX_PPRZ/3
#define MOTOR_MIXING_MAX_SATURATION_OFFSET MAX_PPRZ/10
#endif

#ifndef MOTOR_MIXING_MIN_MOTOR_STARTUP
Expand Down

0 comments on commit c1c25c2

Please sign in to comment.