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
squilter
30ed2508d6
Copter: Support do_digicam_x via command_long
10 years ago
Tom Pittenger
87d0b12c7c
Copter: implement try send mission_item_reached
...
clean up unreachable code
10 years ago
Tom Pittenger
0ecebbd55f
Copter: Refactor verify_command
...
- abstracted verify_command so that command-wide actions can happen more cleanly, namely mission_item_reached
- This also brings the structure in line with plane and rover
10 years ago
Randy Mackay
4d24d1494d
Copter: send_mission_item_reached when cmd completed
10 years ago
Peter Barker
12bce49cd1
Copter: use common mission logging code
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
09a98b89b7
Copter: add RTL to front of RTLState enum values
...
This removes the confusing Land enum value which also appears in the
flight mode enum
10 years ago
Randy Mackay
6ef1ebb5dd
Copter: replace 2xM_PI_F with M_2PI_F
10 years ago
Andrew Tridgell
b88c12ad1f
Copter: use M_PI_F instead of (float)M_PI
10 years ago
Andrew Tridgell
d8146ff3f6
Copter: revert AP_Math class change
10 years ago
Tom Pittenger
e17e793781
Copter: compiler warnings: float to double
10 years ago
Tom Pittenger
20dc48ed16
Coter: compiler warnings: apply is_zero(float) or is_equal(float) and float to doubles
10 years ago
Jaime Machuca
5de15464b6
Copter: add call to send digicam configure messages from a mission item
...
Also add log_picture to separate logging and feedback from
the do_take_picture function so that it can be used when pictures
are triggered from a mission command
10 years ago
Randy Mackay
a3933f7a1f
Copter: handle do_mount_control mission commands
10 years ago
Randy Mackay
7e11ec9a6f
Copter: surf tracking, do-land use inav alt
...
Also CTUN logging of inav alt switched to get directly from inertial nav
lib instead of using current_loc.alt
10 years ago
Randy Mackay
7029b11414
Copter: support do_set_home command from GCS and mission
10 years ago
Randy Mackay
c51ba8cd03
Copter: integrate mount frontend-backend restructure
...
initialise mount on startup
use Mount::has_pan_control method
Remove calls to unimplemented mount.configure_cmd
Remove call to update_mount_type which will be handled from within mount
lib
10 years ago
Randy Mackay
72127cde35
Copter: remove broken support for do-change-alt
...
This command was not implemented fully removing this code resolves a
compiler warning
10 years ago
Randy Mackay
990a34cb75
Copter: remove support for do-set-home mission command
...
This avoids the chance of an arithmetic exception in cases where the
position is moved too far
10 years ago
Jonathan Challinger
f045c75bfe
Copter: play various tones
10 years ago
Clay McClure
a897c14255
Copter: ensure lat, lon, alt all zero is handled
...
Use default position when waypoint lat/lon are zero,
and default altitude when waypoint alt is zero, for
both spline and straight-line waypoints.
Fixes #1145 .
10 years ago
Arthur Benemann
b587025ad1
Copter: send a camera_feedback message when there is a camera trigger
10 years ago
Jonathan Challinger
d7d8330303
Copter: loiter copter without accepting user input at end of auto mission
10 years ago
Andrew Tridgell
c3d839456b
Copter: support logging while disarmed
10 years ago
Randy Mackay
6659473420
Copter: support GUIDED_ENABLE and GUIDED_LIMITS
...
Split of NAV_GUIDED into these two command necessitated guided mode
store the limits
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
ef0e37b478
Copter: bugfix to condition-yaw for relative angles
...
Thanks to roque-canales for raising the issue and paradisephil for finding
the specific piece of code that went wrong and suggesting the fix.
11 years ago
Randy Mackay
bbe4438a6b
Copter: add support for DO_GRIPPER command
11 years ago
Andrew Tridgell
e9fedbdb79
Copter: removed use of removed MAV_CMD_NAV_ commands
11 years ago
Randy Mackay
81355d1adf
Copter: DO_SET_ROI accepted outside missions
...
Moved ROI logic to new set_auto_yaw_roi function.
11 years ago
MousS
ae8fb3f1c5
Copter: MAV_CMD_CONDITION_YAW accepted outside missions
11 years ago
Randy Mackay
f5640dadbf
Copter: guided mode velocity controller
11 years ago
Randy Mackay
12720bbbe1
Copter: accept condition-yaw commands in guided
11 years ago
Randy Mackay
279926e386
Copter: accept guided pos updates when doing NAV_GUIDED cmd
11 years ago
Randy Mackay
fdc0ec837b
Copter: add nav_guided suport to Auto mode
11 years ago
Randy Mackay
e0f4a570c6
Copter: loiter turns radius from command's p1 field
11 years ago
Randy Mackay
8c488ebd87
Copter: use common Log_Write_Camera
...
pair programmed with Craig Elder
11 years ago
Randy Mackay
5c305989b9
Copter: set home alt to absolute alt
11 years ago
Arthur Benemann
e1b7e53c04
Copter: only acceept Guided waypoints in Guided mode
...
Fix #1068 . When receiving guided waypoints do not change to GUIDED mode. This serves as a safety precaution for GCS, since they must switch to guided mode before sending the waypoints.
11 years ago
Randy Mackay
466e9db1f9
Copter: integrate AC_WPNav get_speed_xy name change
11 years ago
Randy Mackay
817c893f21
Copter: bug fix for conditional_distance command
...
Due to a race condition, the wp_distance was not being updated before
the conditional_distance
11 years ago
Randy Mackay
c53a0fcfd9
Copter: conditional yaw fix
...
waypoint command was setting auto_yaw_mode when it was run after the
do-cmd
yaw_look_at_heading was being set to current heading which was
overwriting the caller's desired heading
11 years ago
Randy Mackay
7f00bd7f5d
Copter: default WAYPOINT to current pos if lat, lon, alt are zero
11 years ago
Randy Mackay
e6d2692eab
Copter: Loiter_Turns moves to edge of circle if location provided
11 years ago
Randy Mackay
2b4d2697b2
Copter: process MAV_CMD_DO_PARACHUTE commands
11 years ago
Andrew Tridgell
640b64f5e4
Copter: convert to new GPS API
11 years ago
Randy Mackay
4b6f03cc11
Copter: remove do_land's use of RTL_ALT_MAX
11 years ago
Randy Mackay
7d5d0d12a2
Copter: spline bug fixes
...
Next waypoint's location must be passed in even if it's a straight
segment.
mission.get_next_nav_cmd's start_index should be the current command +1
11 years ago