Tom Pittenger
21205f8b41
Plane: improved crash detection logic and agility
...
- inhibit crash detection warnings when disabled by param so now it can be completely disabled
- reset is_crashed when disabled by param
- fixed pre-takeoff detection bug by adding in_preLaunch_flight_stage() where we are actually in FLIGHT_NORMAL instead of FLIGHT_TAKEOFF during setup of bungee launches. This now detects if we're in that state
- simplified the use of been_auto_flying to check across all flight stages. before it was excluded to handle hand-launches which can now be detected with in_preLaunch_flight_stage()
- added impact detector timer to clamp is_flying a few seconds after an impact
- logging new impact detector as "STAT.Hit"
2016-01-02 09:58:31 +11:00
Tom Pittenger
3aaf2b1d2b
AP_InertialSensor: add pos/neg peak detector
...
new functions that get a filtered min/max accel peaks on each axis with fixed 500ms timeout:
Vector3f get_accel_peak_hold_pos()
Vector3f get_accel_peak_hold_neg()
This allows slower mechanisms, such as is_flying, to detect accel spikes which would indicate ground or object impacts. Vibe is too filtered. Independent positive and negative peaks are available
2016-01-02 09:58:31 +11:00
Andrew Tridgell
b052959c61
GCS_MAVLink: re-generated headers
2016-01-02 08:44:49 +11:00
Jonathan Challinger
c2b4235662
GCS_MAVLink: merge mavlink-solo
2016-01-02 08:42:33 +11:00
Jonathan Challinger
41c881cc9e
GCS_MAVLink: temporarily remove GIMBAL_ and GOPRO_ messages pending solo sync
2016-01-02 08:42:33 +11:00
Jonathan Challinger
2a3fe35731
GCS_MAVLink: run xmlpretty.py on ardupilotmega.xml
2016-01-02 08:42:33 +11:00
Jonathan Challinger
ee18a1c5ed
Tools: add xmlpretty.py
2016-01-02 08:42:33 +11:00
Andrew Tridgell
22873ee687
SITL: reduced drag in plane model
2016-01-01 18:40:22 +11:00
Andrew Tridgell
619a4c0925
SITL: use common dynamics code for QuadPlane
2016-01-01 17:20:30 +11:00
Andrew Tridgell
2f4933ec41
autotest: added two new locations
2016-01-01 17:03:43 +11:00
Andrew Tridgell
33998a58ac
SITL: prevent aircraft going below ground level
2016-01-01 17:01:23 +11:00
Andrew Tridgell
d425965f6d
SITL: expose home yaw to FDMs
2016-01-01 17:00:57 +11:00
Andrew Tridgell
630d4410d4
SITL: removed debug code from QuadPlane
2016-01-01 15:48:56 +11:00
Andrew Tridgell
8a98ce427c
SITL: moved to common code for attitude/pos update
2016-01-01 15:12:33 +11:00
Andrew Tridgell
e6555aae6d
HAL_SITL: added quadplane model
2016-01-01 14:35:15 +11:00
Andrew Tridgell
d0896a1fb2
HAL_SITL: fixed init of channel 8 out in plane and rover
...
should be low
2016-01-01 14:35:15 +11:00
Andrew Tridgell
8932c21155
autotest: added quadplane model
2016-01-01 14:35:15 +11:00
Andrew Tridgell
f2c8193f8b
SITL: added a QuadPlane model
2016-01-01 14:35:15 +11:00
Andrew Tridgell
6f9e9d761f
SITL: move calculations into multicopter frame class
...
this will enable a QuadPlane model
2016-01-01 14:35:15 +11:00
Andrew Tridgell
c6b6d7137d
HAL_SITL: added plane simulator
2016-01-01 12:41:06 +11:00
Andrew Tridgell
16e0a6d7b0
AP_Math: fixed angle between two vector3s
2016-01-01 12:41:05 +11:00
Andrew Tridgell
fcfd11ef53
SITL: very simple fixed wing simulator
...
useful for debugging
2016-01-01 12:41:05 +11:00
Randy Mackay
cfff57257e
Copter: shorten precision landing param prefix
2015-12-31 15:30:39 +09:00
Randy Mackay
1155b1f557
Copter: remove precision landing PI controller
...
This controller has been moved into the precision landing class
2015-12-31 15:30:36 +09:00
Randy Mackay
bea69521c8
AC_PrecLand: velocity PI controller into parent class
2015-12-31 15:30:33 +09:00
Andrew Tridgell
8e4586b4a2
AP_Param: allow for nested groups without subclassing
...
this allows for param tables containing other unrelated objects
2015-12-31 15:30:31 +09:00
Jonathan Challinger
0e85f55cfc
Copter: remove OF_LOITER entirely
2015-12-31 14:27:22 +09:00
Tom Pittenger
d969154391
Copter: incorporate AP_ADSB function rename
...
- non-functional change
2015-12-31 15:36:49 +11:00
Tom Pittenger
3b06260358
Plane: refactored interface
...
- added guided mode handling
- now handles gracefully a manual mode changes during evasion
2015-12-31 15:36:49 +11:00
Tom Pittenger
4e4c1831f0
AP_ADSB: added guided mode handling
2015-12-31 15:36:49 +11:00
Tom Pittenger
0bfe235d6b
Plane: use abort landing logic with mavlink GO_AROUND cmd
...
- also enabled use of CMD_DO_GO_AROUND altitude param
2015-12-31 15:34:41 +11:00
Tom Pittenger
d18c25a0f9
Plane: add item_reached_msg to GUIDED
2015-12-31 15:31:39 +11:00
Robert Lefebvre
dc1846447e
Copter: ensure Ch6 tuned value does not go out of range
2015-12-31 12:41:29 +09:00
Robert Lefebvre
e2879b375d
Copter: fix Ch6 Tuning when no RC Receiver on boot
2015-12-31 12:41:11 +09:00
Jonathan Challinger
93fc595d4d
Copter: check if compass cal requires reboot
2015-12-31 12:32:57 +09:00
Randy Mackay
cd977b3142
Tracker: add Notify parameters
2015-12-31 11:33:13 +09:00
pepevalbe
b4c02d8cd7
Rover: added group parameter for AP_Notify library
2015-12-31 11:33:11 +09:00
pepevalbe
3b3205304b
Copter: added group parameter for AP_Notify library
2015-12-31 11:33:08 +09:00
pepevalbe
9743e32f70
Plane: added group parameter for AP_Notify library
2015-12-31 11:33:05 +09:00
Randy Mackay
4e9f82a0e7
Notify: fix parameter description
2015-12-31 11:33:02 +09:00
pepevalbe
0d5e59eaa3
AP_Notify: configurable RGB LED brightness
2015-12-31 11:32:59 +09:00
Lucas De Marchi
180359d6dd
AP_Math: fix unit test
...
For ROTATION_ROLL_90_PITCH_68_YAW_293 consider the angles as 90, 68.8
and 293.3 degrees to pre-calculate rotation. This matches the rotation
matrix used in code.
While at it, check not only the values are close enough but also the
length of the vector.
2015-12-30 20:22:28 -02:00
Lucas De Marchi
ba3325ffd3
AP_Math: rename rotation
...
The rotations are supposed to follow the name of the enum, in order. The
ROTATION_YAW_293_PITCH_68_ROLL_90 was added with the name of an
intrinsic 321 rotation, but the matrix is actually a 123 rotation,
following the other rotations already present.
Change the name to follow the other names.
2015-12-30 20:22:27 -02:00
Don Gagne
02cfbb25b0
travis: fail build on parameter parse errors
2015-12-30 17:16:20 -02:00
Lucas De Marchi
09ebbac7ab
waf: fix unsorted library
...
The list of libraries is maintained sorted to ease maintenance, avoid
repeating libraries, etc.
2015-12-30 10:42:20 -02:00
Jonathan Challinger
bae16a61e2
AP_InertialSensor: fix segfault
2015-12-29 23:10:56 -08:00
Jonathan Challinger
83d5a6664a
AP_Math: minor changes to matrix_alg in response to review
2015-12-29 22:57:21 -08:00
Jonathan Challinger
0a3c2774e9
AP_InertialSensor: fixes in response to review
2015-12-29 22:55:04 -08:00
Jonathan Challinger
24e413c6af
AP_AccelCal: fixes in response to review
2015-12-29 22:55:04 -08:00
Jonathan Challinger
660d9e86d5
AP_AccelCal: basic sanity check on fit parameters
2015-12-29 11:00:20 -08:00