Randy Mackay
9b05f1d9c7
Copter: add auto-yaw-rate and replace guided_angle_state.use_yaw_rate
...
We use the auto_yaw_mode in auto and guided modes to allow various yaw behaviours
This commit adds a new AUTO_YAW_RATE control to the mode and uses it within guided mode.
This new RATE control is not currently used within auto mode because there is no way (yet) for a mission command to specify a desired rate.
8 years ago
Peter Barker
2d11544ea8
Copter: remove redundant arming check defines
8 years ago
karthik.desai
afc382c342
Copter: moved beacon logging to dataflash
8 years ago
Randy Mackay
8140353c64
Copter: log event when primary GPS changes
8 years ago
Peter Barker
b7f982d7ce
Copter: support for arming and disarming using an auxsw
8 years ago
Andrew Tridgell
e85df47b06
Copter: fixed parameter handling for pointer objects
...
fixed loading of default files and use of POINTER flag on object
groups
8 years ago
Randy Mackay
38478638de
Copter: aux switch for enable/disable proximity based avoidance
8 years ago
Peter Barker
289aba4350
Copter: support for NAV_CMD_PLACE
8 years ago
Randy Mackay
74c9c4aa9d
Copter: add beacon data flash logging
...
Added to Copter vehicle because currently only used by Copter
8 years ago
Peter Barker
e72f5a6240
ArduCopter: enable/disable precision loiter on a switch
...
A switch MUST be assigned for precision loiter to be enabled
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
Randy Mackay
a07ecfe2b3
Copter: log proximity sensor at 10hz
...
This is current in the Copter vehicle code but we can move to the dataflash library when other vehicles start using this type of sensor. Until then adding it to common will just increase the dependencies unnecessarily for other vehicles.
8 years ago
Randy Mackay
d74ae535d1
Copter: log EKF lane switch
8 years ago
Peter Barker
b81074d83a
Copter: simplify auxsw duplicates check
8 years ago
Andrew Tridgell
d0dd10aeea
Copter: added DEV_OPTIONS parameter
...
this is for little used options to allow standard firmware builds to
enable those options for development purposes
First option is for MAVLink based ADSB avoidance
9 years ago
Randy Mackay
e17c8ac851
Copter: remove non-working reset-to-armed-yaw
...
Arguably we should make this work, but until that happens we should not present the option on the auxiliary switches
9 years ago
floaledm
893614897e
Copter: moved MAV_TYPE to Copter.h
9 years ago
Andrew Tridgell
96de005591
Copter: moved MAV_TYPE define to defines.h
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
88da5bd453
Copter: sport mode restructured to match althold and feedback from mid-stick
...
This modifies sport mode to be structured like althold and loiter flight modes so that ongoing maintenance of the modes is hopefully easier.
Also changes throttle feedback to occur from mid-stick
9 years ago
Leonard Hall
205bac91a1
Copter: loiter spin-up to throttle min (and remove a state)
9 years ago
Leonard Hall
d9deab9e8e
Copter: AltHold pilot feedback only spins up to min throttle
9 years ago
Randy Mackay
f4f13bbe6b
Copter: add throw mode logging
9 years ago
chambana
25940c8e0f
Copter: add THROW_TYPE and allow dropping vehicle to trigger motors
9 years ago
Randy Mackay
f0f87a2f0c
Copter: add throw_nextmode
...
vehicle switches to mode specified in THROW_NEXTMODE parameter after the
throw is completed.
9 years ago
Randy Mackay
64ac18da6c
Copter: move throw state into structure
...
This makes it easier to add more state which is required for the follow throw_nextmode change
9 years ago
Randy Mackay
1161417d7f
Copter: add GUIDED_NOGPS flight mode
...
This mode is a cut down version of Guided mode that only accepts attitude commands.
This mode does not require a GPS lock
9 years ago
Randy Mackay
d50987f976
Copter: avoidance_adsb implements copter avoidance using ADSB
9 years ago
Randy Mackay
b61ae1a4a1
Copter: log EKF yaw reset event
9 years ago
Randy Mackay
390d06a400
Copter: add and use FLIP_COMPLETE mode reason
...
No need to use the original reason we entered flip mode as the reason we are exiting flip. Instead we can use a new reason called FLIP_COMPLETE
9 years ago
Randy Mackay
e18bf3af56
Copter: remove unused definitions
9 years ago
Randy Mackay
7689315ba2
Copter: rename sonar to rangefinder
9 years ago
Randy Mackay
e0bf08abe0
Copter: fixes to guided mode target check is within fence
...
guided altitude targets are converted to alt-above-home
remove unnecessary fence_status local variable from guided_set_destination methods
log failures to set guided target under a new failure code: ERROR_CODE_DEST_OUTSIDE_FENCE (5)
rename pv_get_home_destination_distance_mc to pv_distance_to_home_cm
9 years ago
Jonathan Challinger
747344a8ba
Copter: add disarm on land detect option to PILOT_THR_BHV
9 years ago
Randy Mackay
cfb2a6b2f9
Copter: update brake-timeout to work with master
...
We added mode-change reasons since PR was submitted
9 years ago
Andrew Tridgell
111eb2ccc1
Copter: use DataFlash::log_while_disarmed()
9 years ago
Randy Mackay
2eb0484142
Copter: rename Loiter states and swap order within select statement
9 years ago
Randy Mackay
9c12b64ba5
Copter: rename AltHold states and swap order within select statement
...
No functional change
9 years ago
Randy Mackay
3d31c3b936
Copter: log error if circle does not initialise correctly
9 years ago
Randy Mackay
43d14defd4
Copter: RTL handles terrain data failure
9 years ago
Randy Mackay
47658fe964
Copter: add terrain failsafe
9 years ago
Randy Mackay
2134e8bfb9
Copter: add terrain and navigation dataflash error codes
9 years ago
Andrew Tridgell
f32b7684a0
Copter: removed unused startup log message
9 years ago
Jonathan Challinger
1356deab8b
Copter: add control_mode_reason
9 years ago
Jonathan Challinger
6b5ba86f21
Copter: simplify GCS failsafe
9 years ago
Jonathan Challinger
a0ce8af633
Copter: use enum type for control_mode
9 years ago
Andrew Tridgell
31000ac756
Copter: moved Log_Write_Rate() to common code
9 years ago
Lucas De Marchi
e88ba38595
ArduCopter: replace header guard with pragma once
9 years ago
Randy Mackay
a93a0d370a
Copter: add throw mode to aux switches
9 years ago