Michael du Breuil
ca65b214af
AP_TECS: Include needed AP_Baro.h
6 years ago
Andrew Tridgell
c3545be8a1
AP_TECS: fixed a bug in changes from rate-limited to non-limited airspeed
...
The calculation of the non-limited airspeed rate demand used the last
non-limited airspeed, whereas it should have used the last adjusted
value. This led to a single frame spike in airspeed demand, which fed
through to a sudden change in pitch integrator.
6 years ago
Andrew Tridgell
6898ec5776
AP_TECS: prevent airspeed demand spikes causing large pitch changes
...
a short term spike in the derivative of speed demand could cause the
constraint on the pitch integrator to push the pitch integrator to
very low values, causing a sharp nose down which takes a long time to
recover from
6 years ago
Nathan E
9ae5ada82f
Correct AP_TECS.cpp typos per magicrub comments
...
poper changed to proper
6 years ago
Nathan E
24f3abde99
Update AP_TECS.cpp
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Andrew Tridgell
60ec695f55
AP_TECS: set default pitch max to 15
7 years ago
Andrew Tridgell
f3336fdb60
AP_TECS: removed dependency on soaring controller
7 years ago
Peter Barker
f0daf392a5
AP_TECS: use ins singleton
7 years ago
Peter Barker
ffcb9ce945
AP_TECS: use baro singleton
7 years ago
Andrew Tridgell
b6ecce8329
AP_TECS: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Peter Barker
22f1b5ed6f
TECS: support for units on fields
7 years ago
Andrew Tridgell
5bd92b4b7e
AP_TECS: improved support for VTOL transitions
7 years ago
Lucas De Marchi
61a629d766
AP_TECS: add static create method
7 years ago
JU Han
eebef857f1
AP_TECS: gain scaler K_STE2Thr multiplies by (THRmax - THRmin)
...
Makes both feed forward and feed-back consistent
8 years ago
Andrey Kolobov
5fdebe23cc
AP_TECS: disable bad descent for soaring
8 years ago
akolobov
a3f3097941
AP_TECS: added function to reset integrator
8 years ago
Michael du Breuil
666c63da9f
AP_TECS: Update for AHRS NED changes
8 years ago
Tom Pittenger
61bc0a6206
Plane: check stage==LAND instead of landing.in_progress
8 years ago
Tom Pittenger
bf835c7aee
AP_TECS: abstract out the landing stage checks
8 years ago
Tom Pittenger
d1434602a5
AP_TECS: bug fix - use takeoff integrator during land abort
8 years ago
Tom Pittenger
063f517424
Plane, TECS, AP_Landing: rename stage LAND_ABORT to ABORT_LAND
...
this will reduce confusion when searching for FLIGHT_LAND_* and you get a bunch of takeoff related hits. It will also make more sense when the landing library fully manages the FLIGHT_LAND stage entirely because it will not mange FLIGHT_LAND_ABORT
8 years ago
Tom Pittenger
84e11fd899
Plane, AP_TECS: do not pass auto_land flag to TECS, it already knows it
8 years ago
Tom Pittenger
8019cedf5b
AP_Vehicle,AP_SpdHgtControl,AP_TECS: move enum FlightStages to AP_Vehicle::FixedWing
8 years ago
Tom Pittenger
b614b41d6d
AP_TECS: fixed compiler warning
...
- AP_Landing _landing was declared out-of-order
8 years ago
Tom Pittenger
c7bbb6998a
TECS: set landing params as private and use accessors
8 years ago
Tom Pittenger
9035dcbbc5
AP_TECS: migrate aparm "LAND_" params from plane to AP_Landing
8 years ago
Peter Barker
daf9a45efd
AP_TECS: correct parameter metadata
...
Correct incomplete Description of LAND_PDAMP
Add DisplayName for LAND_PDAMP
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Andrew Tridgell
1171b33419
AP_TECS: added TECS_SYNAIRSPEED parameter
...
this allows for the synthetic airspeed estimate to be used in TECS
8 years ago
Andrew Tridgell
7ee42d3a7e
AP_TECS: fixed missing doc comment
8 years ago
Andrew Tridgell
2fab15dcd5
AP_TECS: added use_synthetic_airspeed() API
...
used by quadplane during transitions
8 years ago
Tom Pittenger
e5bd23e34a
Revert "AP_TECS: Convert references to AP_Airspeed."
...
This reverts commit 09d53eaeca
.
9 years ago
Tom Pittenger
8dad05d12e
Revert "Airspeed: store reference in libraries and populate it"
...
This reverts commit c090ba2257
.
9 years ago
Tom Pittenger
c090ba2257
Airspeed: store reference in libraries and populate it
...
- also had to move the initial definition in plane.h so it happened before the others.
9 years ago
AndersonRayner
09d53eaeca
AP_TECS: Convert references to AP_Airspeed.
9 years ago
Murilo Belluzzo
d8b58690ad
AP_TECS: Remove useless 'if' statement
...
This should fix CID 91386.
Before removing the 'if', I checked the log to confirm that both branch
didn't end-up being equal by mistake in some commit. But it looks like
the file was added in the project this way.
9 years ago
Tom Pittenger
7be15be185
AP_TECS: slew the hgt_lag_filter when starting a land
9 years ago
Andrew Tridgell
2527859b59
AP_TECS: update comment on underspeed clearing
9 years ago
Andrew Tridgell
d3d2ce3e0d
AP_TECS: use full throttle in initial takeoff
...
during the first part of a takeoff when we have not yet reached the
target airspeed this forces the throttle to maximum. This fixes a case
where the throttle may drop too low during the first part of takeoff
and lead to a stall.
9 years ago
Tom Pittenger
773372d2f3
Revert "AP_TECS: coverity scan - variables not initialized in constructor"
...
This reverts commit 753c0d47f0
.
9 years ago
Tom Pittenger
c38c3ae7fe
Revert "AP_TECS: coverity scan: init variable struct"
...
This reverts commit 19713200e5
.
9 years ago
Tom Pittenger
19713200e5
AP_TECS: coverity scan: init variable struct
9 years ago
Tom Pittenger
6d0cf22358
AP_TECS: spelling
9 years ago
Tom Pittenger
753c0d47f0
AP_TECS: coverity scan - variables not initialized in constructor
9 years ago
Tom Pittenger
3c6323dd82
AP_TECS: Log TEC2.LF as Aerodynamic Load Factor
9 years ago
Tom Pittenger
f9335e9d8c
AP_TECS: fixed float->double print warning
9 years ago
Andrew Tridgell
98a86bd205
AP_TECS: create TEC2 log message for detailed energy internals
9 years ago
Andrew Tridgell
ff97f52555
AP_TECS: removed log_tuning structure
9 years ago