Commit Graph

6 Commits

Author SHA1 Message Date
Felix Ruess ede94e0375 Merge pull request #539 quat_transformations
Rotorcraft guidance fixes/improvements

So now horizontal guidance returns commands in north/east earth frame and doesn't already rotate it to body frame.
This allows for better handling of them in different controllers.

New and properly working transformations from earth commands to quaternions added.
No proper fixedpoint implementation so far... no change there compared to current master though.
Should still be done for efficiency.

Tested the int_quat stablizitation with this in simulation and it works perfectly as expected.

IMPORTANT: This does currently not have the feature to "add" roll/pitch setpoints via RC in nav/hover anymore.
Is that really used, instead of switching to manual if needed?
Instead you can give velocity commands in hover mode via RC.

Includes max bank improvements proposed in #546

Split PD and I-gain with separate max bank
no wind: integrator (trim attitude) = 0, PD maxbank = -20 to 20 extra: total: -20 to 20
huge wind: integrator (trim attitude) = 20, PD maxbank = -20 to 20 extra: total: 0 to 40
Put gain before integrator to get better insight in the saturation values
Reduce integration overshoots while increasing integration speed by adding the speed error as well
no speed error: integrate as before
counterproductive speed error, integrate faster
if the position error is already decreasing fast, no integrator is needed or it will overshoot

closes #539
2013-10-11 15:52:39 +02:00
Felix Ruess 6b7fdd25a7 [conf][airframes] remove obsolete RC_CLIMB_COEF and RC_CLIMB_DEAD_BAND 2013-09-15 21:43:07 +02:00
Felix Ruess aa4bb5c283 [conf] remove all INS_BARO_SENS
this is not needed anymore.
Instead every baro sensor has to output pressure in Pascal.
2013-09-06 17:26:10 +02:00
Felix Ruess 2c8e58d879 [conf][nps] replace INITIAL_CONDITITONS with JSBSIM_INIT in all airframes 2013-08-19 15:31:16 +02:00
Felix Ruess d669f43d67 [conf] replace stabilization euler by int_euler in examples 2013-07-25 16:52:20 +02:00
Felix Ruess dc11957f3d [conf] some cleaning, moved Poine airframe files to obsolete 2012-09-19 14:19:29 +02:00