Leonard Hall
50a098c359
Copter: Standby functions
5 years ago
Peter Barker
b4537bebd8
Copter: move control_mode_t into being Mode::Number enum class
...
Fixes this compiler error:
In file included from ../../ArduCopter/sensors.cpp:1:
In file included from ../../ArduCopter/Copter.h:195:
../../ArduCopter/mode.h:1291:9: fatal error: declaration shadows a variable in the global namespace [-Wshadow]
AUTO, // after A and B defined, pilot toggle the switch from one side to the other, vehicle flies autonomously
^
../../ArduCopter/defines.h:38:5: note: previous declaration is here
AUTO = 3, // fully automatic waypoint control using mission commands
^
1 error generated.
5 years ago
Peter Barker
6dce39cbe1
Copter: use AP_Arming methods to arm and disarm vehicle
...
Really just changing the namespace of init_arm_motors
6 years ago
Andrew Tridgell
55dca5cda9
Copter: added in sink rate for parachute check
6 years ago
Tom Pittenger
7824b64ad6
Copter: rename dataflash to logger
6 years ago
Peter Barker
c7e21d95ef
Copter: move Log_Write_Error into library
6 years ago
Peter Barker
228d7b676d
Copter: move responsibility for parachute deployment up
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
Leonard Hall
d29a47d605
Copter: Add thrust check, counter reset and comments
6 years ago
Leonard Hall
1a3d181756
Copter: Fix feedback in crash check
6 years ago
Randy Mackay
0cf2850593
Copter: fix thrust_loss check angle check
...
angle deviation corrected to 15deg and based on total lean angle instead of roll and pitch separately
fixed compile error on send_text
6 years ago
Randy Mackay
7a43a21784
Copter: formatting fixes to thrust loss check
6 years ago
Leonard Hall
54a59f581f
Copter: add motor thrust lost check
6 years ago
Peter Barker
9b7b480688
Copter: force log-disarmed on crash check triggering
7 years ago
Peter Barker
f60389d4aa
Copter: use send_text method on the GCS singleton
8 years ago
Randy Mackay
a5ea9420c0
Copter: landing gear position set less often
...
This change means no pwm output is sent to the landing gear servos until the pilot has moved the switch
8 years ago
Andrew Tridgell
0f6d0c5ba9
Copter: combined tri, single, coax and multicopter into a single build
...
this allows copter to be just 2 builds, one for heli, and one for
everything else
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
Leonard Hall
1f2d17e8e7
Copter: increase chance that parachute will deploy
...
Previously a single moment where the vehicle was within 30deg of the target could cause the parachute release counter to reset to zero. This change makes the parachute release if it is spending at least half it's time with more than a 30degree angle error.
9 years ago
Leonard Hall
3b7658c502
Copter: land and crash detector use thrust angle error
...
The thrust angle error is the difference between our desired thrust vector
and the actual thrust vector
Also some changes to use definitions in place of constants in the checks
9 years ago
Andrew Tridgell
86d8450666
Copter: use loop rate for copter
...
this allows for SCHED_LOOP_RATE below 400 in SITL for copter
9 years ago
dgrat
41661f815f
AP_Math: Replace the pythagorous* functions with a variadic template
...
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
9 years ago
Randy Mackay
2e669a35e7
Copter: deploy landing gear when parachute is released
9 years ago
Jonathan Challinger
709fcf37cc
Copter: call renamed functions in AC_AttitudeControl
9 years ago
Luis Vale Gonçalves
3199829d45
Copter: revisions to text strings sent to GCS
9 years ago
lvale
549695181c
Copter: revised and uniformization of severity messages
9 years ago
Lucas De Marchi
84da1f5039
Rename gcs_send_text_P to gcs_send_text
9 years ago
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
9 years ago
Andrew Tridgell
ff934d5bca
Copter: added FS_CRASH_CHECK parameter
...
this allows automatic crash detection to be disabled
10 years ago
squilter
767b4da5b6
Copter: update send text severities
10 years ago
Randy Mackay
8f95bc3b67
Copter: parachute check uses lean angle error of 30deg
...
Also slightly restructured
10 years ago
Leonard Hall
4154ecdf18
Copter: use angle error instead of absolute angle
10 years ago
Randy Mackay
8cdfac8fcd
Copter: remove baro and pilot thr from crash checks
...
Add acceleration < 3m/s/s check
Run crash and parachute checks at 400hz
10 years ago
Andrew Tridgell
278883c521
Copter: finished conversion to .cpp files
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
10 years ago
Andrew Tridgell
356ece3402
Copter: rename .pde files to .cpp files
10 years ago
Randy Mackay
41077be4ad
Copter: parachute failure message if landed
10 years ago
Randy Mackay
3269cd63cb
Copter: parachute check uses alt-above-home
...
Baro alt is tied to the alt above EKF origin which isn't correct
10 years ago
Andrew Tridgell
26f7ab49e3
Copter: fixed some build warnings
10 years ago
Jonathan Challinger
8e3d163c3d
Copter: Change all zero throttle checks that should be conservative to use ap.throttle_zero
10 years ago
Randy Mackay
9bf9e0ede9
Copter: check parachute is enabled before manual_release
11 years ago
Randy Mackay
01e5ae6e5c
Copter: integrate parachute alt_min units change
11 years ago
Randy Mackay
47c1cb8b99
Copter: log parachute events
11 years ago
Randy Mackay
56768a8d61
Copter: add min alt check to parachute release
11 years ago
Randy Mackay
ac982656fd
Copter: extend crash check to trigger parachute
11 years ago
Randy Mackay
fe26af86de
Copter: crash check works with flip flight mode
11 years ago
Randy Mackay
7b9a48107e
Copter: move angle_max parameter to AP_Vehicle
11 years ago
Randy Mackay
8a6c2a6588
Copter: add alt and throttle checks to crash detector
11 years ago
Randy Mackay
2326b2e5f5
Copter: crash checker
...
Crash is determined to have happened when the copter is 20deg more than
the ANGLE_MAX parameter continuously for more than 2 seconds
Not activated when in ACRO mode or while flipping
11 years ago