Randy Mackay
24cfbeebd0
Copter: add throw_exit
9 years ago
Paul Riseborough
a7b69366a1
Copter: Add flight mode for throw launch
...
The is commit adds a new flight mode called 'Throw' to Copter that enables the copter to be thrown into the air to start motors. This mode can only be netered when the copters EKF has a valid position estimate and goes through the following states
Throw_Disarmed - The copter is disarmed and motors are off.
Throw_Detecting - The copter is armed, but motors will not spin unless THROW_MOT_START has been set to 1. The copter is waiting to detect the throw. A throw with an upwards velocity of at least 50cm/s is required to trigger the detector.
Throw_Uprighting - The throw has been detected and the copter is being uprighted with 50% throttle to maximise control authority. This state transitions when the copter is within 30 degrees of level.
Throw_HgtStabilise - The copter is kept level and height is stabilised about the target height which is 3m above the height at which the throw release was detected. This state transitions when the height is no more than 0.5m below the demanded height.
Throw_PosHold - The horizontal motion is arrested and the copter is kept at a constant position and height.
9 years ago
Randy Mackay
9e0cd7a5cf
Copter: allow arming in Drift and Sport modes
9 years ago
Jonathan Challinger
0e85f55cfc
Copter: remove OF_LOITER entirely
9 years ago
Robert Lefebvre
5cc4f41d85
Copter: Helicopter: to use new Stab_Col and Acro_Col functions.
9 years ago
Lucas De Marchi
20c6ffc5e3
Replace use of UARTDriver::printf_P() with UARTDriver::printf()
...
This also starts to show warnings on places that were already using
wrong printf format strings.
9 years ago
Lucas De Marchi
a964ac38ec
Replace use of print_P() with print()
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
49ee4b7965
Copter: tell motors library when to use acro gyro gain
10 years ago
Andrew Tridgell
ebddc05ead
Copter: enable tail pass thru in acro for EXTGYRO tails
...
this allows acro mode to function as full passthru
10 years ago
Randy Mackay
ce1031a5bd
Copter: remove AP_AHRS_NAVEKF_AVAILABLE checks
...
Copter requires an EKF
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
Robert Lefebvre
8f275ca2c4
Copter: Employ heli_radio_passthrough() for servo setup
10 years ago
Andrew Tridgell
554de1f2d7
Copter: added channel objects named after input function
...
this follows the pattern used in plane and rover
10 years ago
Randy Mackay
7acdcd8905
Copter: rename stop to brake
10 years ago
Leonard Hall
33a274c928
Copter: take-off uses PosControl's add_takeoff method
...
Also balances pilot and takeoff climb rates
Also removes takeoff's direct use of poscontrol target
Combined effort of Randy and Leonard
10 years ago
Randy Mackay
772a1acc37
Copter: cancel takeoff if mode changed
10 years ago
Randy Mackay
6f5b5c24f2
Copter: rename tkoff_ to takeoff_
10 years ago
Jonathan Challinger
73d961cebc
Copter: mavlink initiated takeoff in alt-hold modes
...
adds PILOT_TKOFF_ALT for target altitude above home in cm for pilot initiated takeoff
10 years ago
Robert Lefebvre
1aa696bc10
Copter: Implement Stop Mode
10 years ago
Randy Mackay
61ed812fc4
Copter: set Notify's autopilot_mode flag
10 years ago
Randy Mackay
43ba94e99a
Copter: rename manual_flight_mode to mode_has_manual_throttle
10 years ago
Robert Lefebvre
4b86a4aeec
Arducopter: Change mode logging to use common-vehicle DataFlash library.
10 years ago
Andrew Tridgell
fba02479b7
Copter: fixed build with no EKF
10 years ago
priseborough
9e7709fa09
Copter: Expand EKF speed limit public method to handle control limits
10 years ago
priseborough
9844dacf40
Copter: Add EKF ground speed limit to loiter speed control
...
This is required to prevent the speed controller saturating the optical flow sensor during low altitude flying.
10 years ago
priseborough
900519b35b
Copter : Remove legacy optical flow control mode
...
This mode is not compatible with the new PX4Flow interface
10 years ago
Randy Mackay
9d4107f1fc
Copter: allow arming in GUIDED only from GCS
...
Also changed mode_allows_arming function to accept arming_from_gcs param
Also remove AUTOTUNE from arming list
10 years ago
Jonathan Challinger
cc56a972d0
Copter: add mode_allows_arming function
10 years ago
Jonathan Challinger
450f988a21
Copter: remove DRIFT and SPORT from manual_flight_mode function
10 years ago
Randy Mackay
a83a47682d
Copter: remove get_angle_targets_for_reporting fn
...
this saves a tiny amount of time by removing the memory copy of a
Vector3f
11 years ago
Robert Lefebvre
3316fe8f63
TradHeli: Reset flybar passthrough to false when exiting Acro mode.
11 years ago
Randy Mackay
3e6e776360
Copter: of-loiter unavailable if OPTFLOW not enabled
...
of-loiter was small but still present even when optflow was disabled
11 years ago
Randy Mackay
65e5367619
Copter: rename hybrid to poshold
11 years ago
Jason Short
a873942f73
Fix to restore Gimbal control after Mission with ROI
11 years ago
Randy Mackay
7d4c74c28e
Copter: when leaving AUTO only stop mission if running
...
This resolves an issue in which the mission would not automatically
start from the beginning if it had previously been run to completion
11 years ago
Andrew Chapman
3f0a52cb53
Copter: ch7/8 switch for auto pause/continue
...
- added new mode for CH7/CH8 (#24 , auto mission reset)
- changed mission.start() to mission.start_or_resume() in auto_init()
11 years ago
Randy Mackay
1aeaa5955b
Copter: integrate 10sec manual recovery after fence breach
11 years ago
Randy Mackay
55e7e1eb3e
Copter: allow HYBRID to be disabled to save flash
...
Hybrid flight mode costs 4.5k of flash which currently puts us over the
limit for APM1 and APM2 unless optical flow or other features are
disabled
11 years ago
Randy Mackay
b5ed23f592
Copter: integrate skeleton Hybrid mode
11 years ago
lthall
7ed5080dc9
Copter: simplify get_angle_targets_for_reporting
11 years ago
Randy Mackay
10a0303706
Copter: smooth throttle transition between flight modes
11 years ago
Randy Mackay
d579325e2a
Copter: add get_angle_targets_for_reporting
...
This returns the current earth frame roll, pitch and yaw targets which
can depend upon the flight mode
11 years ago
Randy Mackay
b8bb477731
Copter: add flight_mode.pde
11 years ago