Peter Barker
b9ad2bc8db
Copter: add option to disable AUTO mode
...
Saves ~12k of flash
7 years ago
murata
c31c2a4cf1
Copter: optionalize the winch
7 years ago
Andrew Tridgell
0ed75052f8
Copter: enable parameters inside mode objects
...
this adds FHLD_* parameters for FlowHold mode. It is a large patch as
it needs to disentagle the mode class to enable it to be used in
Parameters.h
7 years ago
Matt
5d6c979f70
COPTER: Fix MOUNT_CONTROL yaw in missions
...
If a the mount instances (gimbal) does not support yaw/pan control, the
copter needs to yaw in response to a DO_MOUNT_CONTROL command in
missions. Checking if the mount has pan control, and if not, yawing the
copter was missing from the mission commands logic. As such, a
MOUNT_CONTROL command would control pitch but not yaw/pan. This patch
impliments checking for pan control, and initiating copter yaw as
required.
7 years ago
Peter Barker
6c82f7671d
Copter: move all commands logic into AUTO flightmode
7 years ago
Randy Mackay
2d23e1f7c7
Copter: rename flightmode_ objects to mode_
7 years ago
Peter Barker
103e2cc711
Copter: calculate wp bearing and distance on demand
...
Move responsibility for calculating wp bearing/distance
into the FlightMode object doing the navigation
Calculating these variables was being done at 50Hz where they
were used at 10Hz max.
7 years ago
Peter Barker
682f3c0e7e
Copter: FlightMode - convert RTL flight mode
7 years ago
Peter Barker
2db09ba0f7
Copter: FlightMode - convert GUIDED flight mode
7 years ago
Peter Barker
e2b70c3a0a
Copter: FlightMode - convert AUTO flight mode
7 years ago
Randy Mackay
787954fa37
Copter: integrate winch library
...
fixes after peer review:
rename winch-disable to winch-relaxed
add DO_WINCH to do-verify
winch release-length accepts rate
7 years ago
Lucas De Marchi
be402374ea
ArduCopter: use FALLTHROUGH define
...
When falling through on a case switch, allow to add an empty statement
with the correct attribute to tell the compiler this behavior is
intended.
8 years ago
Peter Barker
cdf9ebcb39
Copter: camera is responsible for taking distance-based-images and logging
8 years ago
Randy Mackay
4c9e118ceb
Copter: set_auto_yaw_look_at_heading takes bool for relative angle arg
...
No functional change
8 years ago
Peter Barker
358555446b
Copter: eliminate gcs_send_mission_item_reached wrapper
8 years ago
Peter Barker
0ac045febe
Copter: eliminate gcs_send_message wrapper
8 years ago
Peter Barker
f60389d4aa
Copter: use send_text method on the GCS singleton
8 years ago
Randy Mackay
814cadac68
Copter: consolidate set_home functions
...
added lock argument instead of having twice as many functions
no functional change
8 years ago
Randy Mackay
8f43b60247
Copter: set EKF origin from first do-set-home command
8 years ago
Michael Day
49e3ce8e75
Copter: Now recognizes DO_FENCE_ENABLE mission command.
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
Peter Barker
cf4be25d61
Copter: correct compilation when camera disabled
8 years ago
Peter Barker
8033e0c315
Copter: fix compilation when gripper disabled
8 years ago
Peter Barker
3551609a21
Copter: payload place requires 30% throttle reduction to release
8 years ago
Peter Barker
c191a44b27
Copter: payload place skips releasing states if gripper not valid
8 years ago
Randy Mackay
377a747065
Copter: minor format fix for fall through for payload-place
8 years ago
Randy Mackay
5f60961866
Copter: fix suppressing comment for case fall through
...
eclipse stops complaining if no-break is used in place of fall-through
8 years ago
Pierre Kancir
5900653b7f
Copter: Commands_logic fix comparing floating point with ==
8 years ago
Pierre Kancir
8d4bad0742
Copter: Commands_logic fix implicit cast to double
8 years ago
Peter Barker
4aab4f72b6
Copter: move to releasing payload if we are landed
8 years ago
Peter Barker
289aba4350
Copter: support for NAV_CMD_PLACE
8 years ago
Peter Barker
236b8ab6b7
Copter: make EPM a subclass of AP_Gripper_Backend
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
murata
57c61ace62
Copter: To remove a break after the return statement.
8 years ago
Pierre Kancir
6f79a8c37c
Arducopter: simply invalid cmd msg
9 years ago
Pierre Kancir
94e42e870e
ArduCopter: uniformize verify_command
...
Add better gcs message,
Add all handle message,
Reformate comments,
Fix do_roi comment
9 years ago
Randy Mackay
728e8f8f56
Copter: land_state uses enum
...
This resolves a Covarity warning related to initialisation (that was not really a problem) but it is better form anyway
9 years ago
Randy Mackay
ac4f36a992
Copter: remove LAND_REQUIRE_MIN_THROTTLE_TO_DISARM feature
...
This definition has been false for over a year and we have not heard of any users wanting to delay the disarming until the pilot's throttle goes to zero. Removing this feature removes a small bit of complexity from the code.
9 years ago
Randy Mackay
793e3da904
Copter: rename variables used for NAV_DELAY command
9 years ago
Niti Rohilla
55f66b7696
Copter: Add support for MAV_CMD_NAV_DELAY
9 years ago
Francisco Ferreira
8fb318a6e1
Copter: fix do_loiter when executed in same location
9 years ago
Francisco Ferreira
8ce8551669
Copter: fix detection of 0 values for lat, lng and alt in waypoints
9 years ago
Michael du Breuil
c97888f524
Copter: Remove support for CONDITION_CHANGE_ALT
9 years ago
Randy Mackay
d92154a44e
Copter: rename set_alt to set_alt_cm in commands_logic
9 years ago
Randy Mackay
267c1c3934
Copter: guided mode handles terrain alt
9 years ago
Randy Mackay
e8b14e59fc
Copter: spline mission commands handle terrain altitudes
9 years ago
Randy Mackay
81d244c9bd
Copter: do-circle accept terrain altitude
9 years ago
Randy Mackay
4892446c55
Copter: do-loiter accepts terrain altitudes
9 years ago
Randy Mackay
ffd86744ce
Copter: do-land accepts terrain
9 years ago
Randy Mackay
06ee6a7bd4
Copter: auto takeoff accepts abs and terrain alts
9 years ago