Andrew Tridgell
ddeda1c367
DCM: use rotation_matrix_from_euler() in matrix reset
...
this makes the code a bit easier to read
13 years ago
Andrew Tridgell
06f37aad75
DCM: use calculate_euler_angles() to get eulers from DCM
...
this makes the code a bit easier to understand
13 years ago
Andrew Tridgell
16ed8bc8f6
AP_Math: added rotmat <-> euler functions
...
these will make the dcm matrix manipulation easier to understand
13 years ago
Andrew Tridgell
1cd3172954
ACM: ensure update_trig() doesn't cause NAN values for cos_roll/cos_pitch
...
the DCM matrix could have a value over 1.0 for c.x due to rounding
errors
13 years ago
Andrew Tridgell
c354879f1f
Compass: ensure we don't produce NAN values for compass heading
...
this leaves the previous heading values alone if we are at a pitch of
exactly 90 or -90, at which point we can't compute a meaningful
heading
13 years ago
Andrew Tridgell
17d16bc8c6
AP_Math: added safe_sqrt() function
...
this function will never return NAN. It will return zero for negative
numbers.
13 years ago
Andrew Tridgell
bad653f230
DCM: tidy up the nan checking in DCM
...
use is_nan() on the matrix rather than just on c.x, and add
safe_asin() to the (unused) OUTPUTMODE==2 code.
13 years ago
Andrew Tridgell
c8e6d03c67
DCM: added matrix recovery on reset
...
when we get a bad DCM error we can recover a matrix corresponding to
the current attitude, making it more likely that the aircraft will be
able to recover
13 years ago
Andrew Tridgell
502fbf6e17
AP_Math: added a safe_asin() function
...
this adds range checking to asin()
13 years ago
Andrew Tridgell
17170da96e
AP_Math: added is_nan() methods to vector3f and matrix3f
13 years ago
Jason Short
b094f6ce52
added set integrator
13 years ago
Jason Short
364afe8da0
added a constraint to D term
13 years ago
Hazy
e3c3307c09
APM Planner
...
a little bit translate
13 years ago
Andrew Tridgell
ef90f336d3
DCM: changed the sense of floating point range comparison
...
This allows us to detect NaN, otherwise NaN values were considered
'in range'
13 years ago
Andrew Tridgell
57ffd00b69
DCM: range check the matrix before calculating pitch
...
The asin() in the pitch calculation can only take values between -1
and 1. This change ensures that the value is in range, and if it isn't
then we force a normalization. If that fails we reset the matrix
13 years ago
Andrew Tridgell
2bb58db3f7
DCM: reset more values on renorm blowup
...
when DCM blows up, we need to reset a lot more variables to ensure
that any NaN values don't persist
13 years ago
Andrew Tridgell
95ef9206dc
DCM: renorm_sqrt_count is now called renorm_range_count
13 years ago
Andrew Tridgell
156d98cb9f
DCM: remove the taylor expansion optimisation for renormalisation
...
The sqrt() costs about 44usec on a 2560, which is small enough for us
not to worry about the speed.
This also changes the range of values where we declare a blowup to
much less likely, which means we can cope with larger delta_t glitches
13 years ago
Jason Short
c7c16a5b0f
Emile's Fixes
13 years ago
Jason Short
4483f19f85
Marco's Hexa Motors
13 years ago
Michael Oborne
eaa29d5e3b
firmware build
13 years ago
Jason Short
242f54793c
revved a version
13 years ago
Jason Short
729c824809
made timer unsigned
13 years ago
Jason Short
42b5d47f7b
commented out control mode debug print
13 years ago
Michael Oborne
ececcc6a69
ensure autoupdate works
13 years ago
Michael Oborne
56cf4f328b
APM Planner 1.1.40
13 years ago
Michael Oborne
06a1035953
APM Planner - gps lat long bug fix.
13 years ago
Michael Oborne
3bb3cbe5b6
APM Planner 1.1.39
...
fix timeout issue.
13 years ago
Michael Oborne
58d9acb92e
APM Planner - fix timeout bug
13 years ago
Michael Oborne
17c2eeb306
APM Planner 1.1.38
...
add ap param support
fix dtr
fix firmware screen on mono
misc mono fix's
mods from mandrolic - partial.
Add spanish - issue 515
new sitl images for attitude hil - issue 513
13 years ago
Michael Oborne
a3cb208468
firmware build
13 years ago
Michael Oborne
b78bca49b8
firmware build
13 years ago
Jason Short
c10778d685
Better throttle for tests
13 years ago
Jason Short
30efbae0e9
removed old comments
13 years ago
Jason Short
11dd9564d9
SIMPLE mode throttle fix
13 years ago
Andrew Tridgell
e5ec810c92
autotest: fixed check of return code for build_all.sh
13 years ago
Andrew Tridgell
c3d6e64efb
autotest: fixed directory for build_all.sh
13 years ago
Jason Short
265c5255a3
Added slow_wp default in AP mode
13 years ago
Jason Short
336441b109
reset slow_WP option at mode switch
13 years ago
Jason Short
81a861c8ac
Added slow wp option in calc_desired_speed
13 years ago
Jason Short
33d4d52a6b
set Slow WP option for RTL in Auto mode
13 years ago
Jason Short
cae49b3543
Added "slow WP" option for RTL.
13 years ago
Jason Short
b54d08f410
Updated manual throttle control during throttle hold
13 years ago
Jason Short
bcd5129f9b
added workaround for resetting alt.
13 years ago
Jason Short
fa32b084bd
Added SW test for Manual Boost
13 years ago
Jason Short
1c9bb25f09
AP TEST fixes for new throttle control
13 years ago
Randy Mackay
9fabdb5797
TradHeli - change throttle range back to 0~1000 (was temporarily changed to be 1250~850 which limited the range of the swash plate's vertical movements)
13 years ago
ellissu
6cf7f45f2e
Edit and Add some Traditional Chinese translation
13 years ago
Andrew Tridgell
4a766e1abd
autotest: lower throttle level for lowering altitude in loiter
...
we were not dropping altitude in the change_alt test
13 years ago
Andrew Tridgell
9700afaf10
autotest: fixed failsafe test
...
increased timeout, added check for home location, and fixed failure
testing on timeout
13 years ago