Leonard Hall
67bbbcfa58
Copter: Separate landing and terrain following.
3 years ago
bnsgeyer
2361707133
Copter: Allow Tradheli to spoolup in guided or auto mode
3 years ago
Leonard Hall
300c5a9207
Copter: Correct yaw expo range limit
4 years ago
Leonard Hall
3fd28bd74b
Copter: Set Force Descend to true only when in the last phase of landing
4 years ago
Leonard Hall
3b0a870504
Copter: Rename set_yaw_target_to_current_heading
4 years ago
Leonard Hall
e294991b08
Copter: Fix before squash
4 years ago
Leonard Hall
4bae8f03a4
Copter: Use PosControl fixes
4 years ago
Leonard Hall
726074be91
Copter: Support Thrust Vector based navigation
4 years ago
Tatsuya Yamaguchi
c42681f4f2
Copter: add exit() method to Mode class
4 years ago
Leonard Hall
a29e2d8920
Copter: fix references to position error
4 years ago
Peter Barker
5edfed0083
Copter: factor out a mode-change-failed method
4 years ago
murata
31b0682246
Copter: Move the variable definition
4 years ago
Peter Barker
dc793e916f
Copter: move implementation of get_pilot_desired_yaw_rate into mode.cpp
4 years ago
Tatsuya Yamaguchi
0cce5699b2
Copter: change from control_mode to flightmode
4 years ago
Randy Mackay
32fb3cb929
Copter: remove unused update_navigation and run_autopilot
4 years ago
Leonard Hall
5efe94a771
Copter: use AP_Math control functions
4 years ago
bnsgeyer
c75848435e
Copter: fix heli land detector and incoporate reset_I_smoothly
4 years ago
Andy Piper
b8f613c965
Copter: rename ADSB_ENABLED to HAL_ADSB_ENABLED and remove from config
4 years ago
Peter Barker
afa153fb6f
Copter: remove wrapper for get_avoidance_adjusted_climbrate
...
Only the modes are interested in this - there's no point having it on
the Copter object.
5 years ago
Randy Mackay
315d9da138
Copter: add ekf alt pre-arm and mode init checks
5 years ago
Peter Barker
d87986ecdd
Copter: move set_throttle_takeoff implementation into Mode
...
No callers except the mode objects, so move it.
5 years ago
Andy Piper
54c3d07547
Copter: make make/gimbal configurable on a per-board basis
5 years ago
Peter Barker
73526c0256
Copter: pass reason through in set_mode AP_Vehicle override
...
Other vehicles seem to do this correctly.
5 years ago
Andy Piper
12c9578a66
Copter: add in additional acro options
...
Air-mode for multicopters
Rate only for multicopters and trad-heli
if air-mode aux switch is toggled in acro do not reset air-mode on exit
5 years ago
Randy Mackay
c4b5d47e1f
Copter: white space fixes
5 years ago
murata
2822fa68fc
Copter: Adding flight mode to flight mode unchangeable messages
5 years ago
Tatsuya Yamaguchi
735498e160
Copter: move zigzag exit into mode_zigzag.cpp
5 years ago
Peter Barker
136d0cce0b
Copter: rewrite_get_alt_above_ground_cm for clarity
...
It's not entirely clear at a glance that we don't return an
uninitialised value off the stack here.
5 years ago
Andrew Tridgell
dd5fafe30e
Copter: added rangefinder height interpolated using inertial alt
...
this smooths rangefinder heights and allows for good estimated for
precision landing even with loss of some rangefinder samples during landing
5 years ago
Tatsuya Yamaguchi
9f577a23c8
Copter: stop spray if changing a mode from ZigZag to other
5 years ago
Randy Mackay
b482d147df
Copter: always store previous control mode
...
also minor spacing fixup
5 years ago
Peter Barker
10bbcf98be
Copter: tidy land_run_vertical_control for precision-landing case
5 years ago
Gone4Dirt
180d4e713c
Copter: Added autorotation flight mode and support
5 years ago
Bogdan Grigoruta
5183703243
Copter: move Mode::auto_takeoff_run to takeoff.cpp
5 years ago
Peter Barker
e6c6189fe5
Copter: cope with change in namespace of LogEvent enum
...
Also move Acro Trainer types into an enum class as the global defines
interfere with the Event names.
Also eliminate the Log_Write_Event wrappers.
5 years ago
Michael du Breuil
b42b1c08c4
Copter: Support new AP_Vehicle::set_mode
5 years ago
Leonard Hall
c11f2247eb
Copter: System ID mode
5 years ago
Randy Mackay
ca92f0505e
Copter: follow mode restores offsets to zero on exit
5 years ago
Andrew Tridgell
328fff8585
Copter: fixed RC failsafe handling for no RC receiver
...
this stops us using uninitialised values in modes like circle which
can operate either with or without RC input. If we didn't have a RC
receiver attached then they would use a maximum yaw rate (which
produces quite a spectacular result for a tuned up racing quad)
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
0ce3cd06b0
Copter: fix compilation when drift mode is disabled
6 years ago
Peter Barker
b0428f0fe8
Copter: make surface_tracking a class, various functions methods
6 years ago
Michael du Breuil
242096b65e
Copter: Send a heartbeat on mode change
6 years ago
Peter Barker
676d75c391
Copter: correct namespacing of Copter modes
...
This makes us look like Rover and Plane in terms of namespacing for the
Mode classes, and removes a wart where we #include mode.h in the middle
of the Mode class.
This was done mechanically for the most part.
I've had to remove the convenience reference for ap as part of this.
6 years ago
Pierre Kancir
c2811ea144
ArduCopter: respect yaw orientation on LAND
6 years ago
Randy Mackay
b7d0e4ec10
Copter: remove surface tracking shim functions
6 years ago
Randy Mackay
01909cf4c8
Copter: zigzag mode gets terrain following support
6 years ago
Randy Mackay
89eb876faf
Copter: move surface tracking variables into structure
6 years ago
Randy Mackay
33a57361bd
Copter: reduce args passed to get_surface_tracking_climb_rate
...
The same arguments are always passed in
6 years ago
Pierre Kancir
caf925eda5
Copter: factorize arm or land check
6 years ago