Commit Graph

9 Commits

Author SHA1 Message Date
Gautier Hattenberger 0a65e14903 [autopilot] compiling generated AP for fixedwing (#2055)
* [autopilot] compiling generated AP for fixedwing

* update some old variable names for autopilot mode

* prevent oscillation on the ground with real aircraft

* add guidance loop to 'new' control

all this guidance code should really be better factorized

* fix rotorcraft autopilot for new API

* read guidance RC if needed

* use generated autopilot as soon as an autopilot file is defined

* autopilot node at airframe, firmware or target level

The autopilot can be specific to one of the firmware, or one of the
target.
At the moment, it will fail at runtime if more than one autopilot in the
same airframe since server don't know which target is in use.
2017-05-06 13:24:40 -07:00
Gautier Hattenberger 363dec8693 Autopilot refactor (#2009)
* [autopilot] refactor autopilot API for both firmwares

With this, fixedwing and rotorcraft are mostly using the same interface
for the autopilot. Some specific code and messages handling are still
firmware dependent.
A large part of the autopilot logic of the fixedwing is moved from
main_ap to autopilot_static.
More getter/setter functions are provided.

* [autopilot] update the rest of the system and the conf

for using the refactored autopilot API

* [autopilot] fix some errors from CI servers

* [actuators] use dummy actuators module to prevent autoloading

* Rename Bart_heliDD_INDI.xml to tudelft_bs_helidd_indi.xml

* Rename Bart_heliDD_pid.xml to tudelft_bs_helidd_pid.xml

* Delete tudelft_course2016_bebop_colorfilter.xml

* Delete tudelft_course2016_bebop_avoider.xml

* [actuators] don't autoload actuators when set to 'none'

* [gcs] autodetect firmware for strip mode button
2017-02-19 11:45:57 +01:00
Gautier Hattenberger 34d2196f44 more readable start and stop functions 2016-12-21 00:31:06 +01:00
Gautier Hattenberger 96370d7454 run flight plan nav in all modes 2016-12-20 23:52:30 +01:00
Gautier Hattenberger 5613d79dc4 [autopilot] support generated autopilot, based on rotorcraft firmware
By default the original static autopilot is used. A config flag can
enable the use of the generated AP code.
A basic autopilot description is provided (4 modes + failsafe modes).
The server is capable of using the list of generated mode to properly
display mode names.
Tested in NAV and GUIDED mode in sim, and direct attitude control on
real aircraft.
2016-12-19 22:21:04 +01:00
Gautier Hattenberger 3561371f1d [autopilot] update rotorcraft autopilot file 2014-09-04 18:59:16 +02:00
Gautier Hattenberger f30047d852 [generator] allow multiple state machines for autopilot generator 2014-09-04 16:56:33 +02:00
Felix Ruess 048c137b34 [conf] testing gen_autopilot stuff 2014-06-11 21:41:28 +02:00
Gautier Hattenberger 1cde58928b [autopilot] AP is generated when autopilot node exists in airframe 2012-11-14 14:09:32 +01:00