Commit Graph

1788 Commits

Author SHA1 Message Date
squilter 5775455b68 Plane: define and send FIRMWARE_VERSION 2015-08-28 12:04:11 +09:00
Andrew Tridgell 57842b9268 Plane: prepare plane 3.4.0beta1 release 2015-08-28 12:04:09 +09:00
Tom Pittenger 42061ee290 Plane: implement try send mission_item_reached
clean up unreachable code
2015-08-19 20:44:58 +09:00
Tom Pittenger 61ae42db40 Plane: post "Distance from LAND point" on every land
- waits until disarm after a land
2015-08-19 20:44:51 +09:00
Stewart Loving-Gibbard 52a019c33a Plane: Fixing unambiguous spelling errors in Parameters.cpp file.
These are user-visible in Mission Planner and the like.
2015-08-19 20:44:49 +09:00
Andrew Tridgell 2ba3bdde27 Plane: disable TRIM_RC_AT_START by default 2015-08-19 20:44:15 +09:00
Andrew Tridgell 51ff905ba8 Plane: make TRAINING mode obey stall prevention roll limits
Fixes issue#2014
2015-08-19 20:44:12 +09:00
Andrew Tridgell 5101e263fa Plane: don't do battery failsafe when disarmed 2015-08-19 20:44:11 +09:00
Andrew Tridgell f202b7d283 Plane: prevent build error with MSG_RPM 2015-08-19 20:43:53 +09:00
Andrew Tridgell 5da21d2bb2 Plane: prevent mode switch changes changing WP tracking
this fixes a bug where a mode switch change during an AUTO mission
which does not change the flight mode would cause cross tracking to be
reset, so the plane will not correctly follow the desired track

Many thanks to Michael Du Breuil for the log that showed this bug
2015-08-19 20:43:42 +09:00
Gustavo Jose de Sousa c1b9ebc0e4 ArduPlane: standardize inclusion of libaries headers
This commit changes the way libraries headers are included in source files:

 - If the header is in the same directory the source belongs to, so the
 notation '#include ""' is used with the path relative to the directory
 containing the source.

 - If the header is outside the directory containing the source, then we use
 the notation '#include <>' with the path relative to libraries folder.

Some of the advantages of such approach:

 - Only one search path for libraries headers.

 - OSs like Windows may have a better lookup time.
2015-08-19 20:42:05 +09:00
squilter 7c575b251a Plane: init vehicle capabilities 2015-08-19 20:04:08 +09:00
Przemek Lekston a855ca66b5 Plane: fix "logging disabled" build. 2015-08-19 20:03:54 +09:00
Grant Morphett a39819f17f Plane: Fix landing to stop divide by zero if params are 0
If someone mistakenly puts all 0's in their LAND command then
total_distance will be calculated as 0 and cause a divide by 0 error
below thus crashing ArduPilot.  Lets avoid that.
2015-08-19 20:03:52 +09:00
Andrew Tridgell 2a30b1862b Plane: disable camera logging when camera support disabled 2015-08-19 20:03:33 +09:00
Andrew Tridgell f6e98ff8ef Plane: remove unused file 2015-08-19 20:03:32 +09:00
Andrew Tridgell f04954b58c Plane: trim out some log msgs on APM2
save a bit more flash
2015-08-19 20:03:31 +09:00
Andrew Tridgell be747afd0b Plane: re-enable geofencing on APM2
it only just fits ...
2015-08-19 20:03:30 +09:00
Andrew Tridgell 85179edf58 Plane: added HIL_SUPPORT define
disable HIL support on APM2 to save flash space
2015-08-19 20:03:29 +09:00
Andrew Tridgell 8a975015b5 Plane: fixed above_location_current() for non-terrain alt
thanks to Lekston for finding the bug (PR#2610)
2015-08-19 20:02:44 +09:00
Andrew Tridgell 58fa38cc12 Plane: allow rudder disarm based on ARMING_RUDDER parameter 2015-07-23 21:48:50 +10:00
pepevalbe da41d85433 Plane: It is possible to disarm with left rudder.
Using is_flying() avoid accidentally disarming while flying.
2015-07-23 21:48:44 +10:00
Przemek Lekston 4b38d444dd Plane: fix default behaviour of flaps. 2015-07-23 15:28:08 +10:00
Przemek Lekston 6a62b11536 Plane: fix LOITER_TO_ALT to verify headings towards waypoints within the loiter radius.
Whenever next waypoint is within the loiter radius, maintaining loiter would prevent us from ever pointing toward the next waypoint. Hence for very close waypoints loiter_to_alt becomes verified by the altitude only.
2015-07-23 15:24:43 +10:00
Grant Morphett cc6a981b12 Plane: deleted the old command_description.txt file which isn't used. 2015-07-21 16:31:24 +09:00
Andrew Tridgell 51bdbea745 Plane: fixed format for ARM message 2015-07-20 09:46:19 +10:00
Randy Mackay b670988e05 Plane: log IMUDT 2015-07-14 13:31:56 +09:00
Andrew Tridgell 266857c595 Plane: avoid linking optflow on APM2
not used, just taking memory
2015-07-10 16:46:30 +10:00
Lucas De Marchi e97034f8e9 ArduPlane: use ARRAY_SIZE macro 2015-07-07 07:56:30 +10:00
Randy Mackay 76ccf4043e Plane: log ahrs home and ekf origin 2015-07-06 12:11:56 +09:00
Tom Pittenger f1ee129423 Plane: compiler warnings
- float to double in gcs_send_test (x2)
- float to bool
2015-07-06 09:30:19 +10:00
Andre Kjellstrup edc32092ce Plane: Do not run long_failsafe during final or landing. 2015-07-02 14:28:45 +10:00
Andre Kjellstrup 9d525d4382 Plane: Do not run FailSafe if on final approach or landing.
A failsafe (Circle, RTL) would easily become a disaster if trigged
during approach or final.
2015-07-02 14:28:45 +10:00
Andre Kjellstrup baf4989a80 Plane: Ignore low voltage failsafe during landing
Log it, but do not switch to RTL if already in final or landing.
2015-07-02 14:28:44 +10:00
Peter Barker 3fce7eb21a Plane: use common mission logging code 2015-06-30 16:23:35 +10:00
Peter Barker bbfe67fe2a Plane: use common system information logging 2015-06-30 16:23:34 +10:00
Peter Barker 7f0a0cf64f Plane: DataFlash frontend/backend split 2015-06-26 16:02:50 +10:00
Michael du Breuil 54c06cde02 Plane: Log the steering controller PID state 2015-06-22 15:41:44 +10:00
Michael du Breuil 1a121f543b Plane: Use PIDS for steering rather then PIDY 2015-06-22 15:41:44 +10:00
Andrew Tridgell 4aac2c5c96 Plane: trigger OVERRIDE_CHAN in px4io
setup the MODESWITCH channel as our OVERRIDE_CHAN, allowing for
instant manual passthru in px4io when OVERRIDE_CHAN goes above 1750

This makes for faster switching, and avoids bugs where a still enabled
FMU channel disables override
2015-06-21 18:19:16 +10:00
Andrew Tridgell 248bf8c5a3 Plane: disable geofence on APM2 2015-06-20 14:52:42 +10:00
Andrew Tridgell 2dbe372b2f Plane: cleanup some coverity warnings 2015-06-20 13:26:34 +10:00
Andrew Tridgell ae1f2e8bea Plane: fixed missing break statement 2015-06-20 12:35:07 +10:00
Andre Kjellstrup 19aa7caad0 GCS_Failsafe: option to trigger only in AUTO mode. 2015-06-18 07:52:43 +10:00
Andre Kjellstrup 39797529fd GCS_Failsafe: defines for new failsafe option 2015-06-18 07:52:42 +10:00
Andre Kjellstrup 3e84132f6b GCS_Failsafe: new parameter option 2015-06-18 07:52:42 +10:00
Andrew Tridgell 76c0293a85 Plane: added support for DO_AUTOTUNE_ENABLE 2015-06-15 09:20:55 +10:00
Andrew Tridgell d5c5400e76 Plane: added support for ALTITUDE_WAIT mission command 2015-06-15 09:20:55 +10:00
Andrew Tridgell 358a13261c Plane: moved sink_rate calculation to update_alt()
this makes it available to non-landing code
2015-06-15 09:20:55 +10:00
Randy Mackay 814cb5ce18 Plane: add vibration DF logging and send to GCS 2015-06-12 21:36:47 +09:00