Andrew Tridgell
97687f04af
Plane: enable messages for MAVLink gimbal support
10 years ago
Andrew Tridgell
b92c2409e4
Plane: added local millis() and micros() to reduce code size a bit
10 years ago
Andrew Tridgell
18c37935c9
Plane: convert from .pde to .cpp files
10 years ago
Tom Pittenger
eb2bfcd2d3
Plane: replace fabs() with labs(), unnecessary int to float conversion
10 years ago
Michael Day
ee14678d2a
Plane: Allow disabling of only the fence floor.
10 years ago
Tom Pittenger
c4c47cba66
Plane: compile warnings: float to double. print statements require doubles
10 years ago
Andrew Tridgell
c73945686c
Plane: use ahrs.yaw_sensor not direct compass read for yaw
...
also use 10 degrees of margin, to cope with fast yaw changes (this
function is called at only 10Hz)
10 years ago
Andrew Tridgell
343a682d22
Plane: fixed conditional for 0 lat/lon
10 years ago
Michael Day
607d9ca839
Plane: Implementation of do_ and verify_ for MAV_CMD_NAV_LOITER_TO_ALT
10 years ago
Tom Pittenger
bd9b573969
Plane: Fix compile warnings
...
- const values declared as default double
- This is the first pass in fixing the warnings, trying to catch some low hanging fruit. All const double values are changed to float. For example: 1.0 is now 1.0f.
- Only except is in location.pde where some double stuff is happening
- I did not change the exponentials 1e7 type stuff which should be 1e7f. A different commit
10 years ago
Jaime Machuca
ab1cf2261d
Plane: add call to send digicam configure messages from a mission item
...
Also add log_picture to separate the taking of a picture
from the dataflash logging and feedback to GCS
10 years ago
Andrew Tridgell
999710d0e1
Plane: fixed issue where auto is entered before GPS lock
...
thanks to Tom Pittenger for noticing this!
10 years ago
Andrew Tridgell
76f8b9b07c
Plane: support DO_SET_HOME MAVLink command
10 years ago
Randy Mackay
681d28838f
Plane: 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 is now handled by mount lib
10 years ago
Robert Lefebvre
a2d73b42b9
Plane: Change Mode logging to use DataFlash library method.
10 years ago
Andrew Tridgell
1e3c23e5a3
Plane: on takeoff set prev_WP_loc to current_loc
10 years ago
Andrew Tridgell
ae96a48efc
Plane: use location_path_proportion()
...
this should produce better glide slopes when the aircraft is off
course
10 years ago
Andrew Tridgell
c05a0bc67f
Plane: prevent a change altitude command from causing a sudden descent
...
when a change altitude command comes in while a large glide slope
altitude change is present we could end up using the old glide slope
with the new altitude. This resets the altitude offset, causing a
direct altitude change
10 years ago
Andrew Tridgell
19847d8607
Plane: fixed missing break statement
10 years ago
Michael Day
8662aaa878
Plane: Support MAV_CMD_DO_FENCE_ENABLE as a mission item.
10 years ago
Andrew Tridgell
77958f8fd4
Plane: fixed CONTINUE_AND_CHANGE_ALT command
...
current_loc should be used, not prev_WP_loc
10 years ago
Michael Day
95d2e79312
Plane: Keep throwing WP in front plane for CONTINUE_AND_CHANGE_ALT
10 years ago
Michael Day
442c188ae0
Plane: Implementation of MAV_CMD_CONTINUE_AND_CHANGE_ALT.
10 years ago
Arthur Benemann
fe9e68f88c
Plane: send feedback to the GCS of pictures taken
10 years ago
Andrew Tridgell
1f3e285ed0
Plane: reset commanded_go_around at start of land
...
this allows multiple landing attempts
10 years ago
Michael Day
01f611daa9
Plane: "Go around" operation. Assumes go around behavior follows land wp.
10 years ago
Andrew Tridgell
8d329f6b5a
Plane: ignore DO_LAND_START in missions
10 years ago
Michael Day
fe43ae538f
Plane: Added support for MAV_CMD_DO_LAND_START
10 years ago
Andrew Tridgell
71d786187e
Plane: make auto takeoff independent of compass
...
this solves a problem of poor initial yaw due to poor compass offsets
causing a takeoff to not be in the direction the plane is pointing. A
summed gyro is used until the GPS speed is above 5m/s for 2 seconds,
then the GPS heading corrected by the summed gyro error is used for L1
based navigation for the rest of the takeoff
10 years ago
Andrew Tridgell
bf80a2485f
Plane: support acceptance radius for waypoints
11 years ago
Andrew Tridgell
dad95648a0
Plane: split landing code into landing.pde
...
this is in preparation for more complex landing code using the
rangefinder
11 years ago
Andrew Tridgell
7def71d43a
Plane: improved landing approach and flare
...
flare if we are within the specified time of landing either vertically
or horizontally
11 years ago
Andrew Tridgell
165993dbf5
Plane: allow steering right through the landing
...
this allows a small degree of steering right through the landing,
which makes it possible to have a turn just before landing
11 years ago
Andrew Tridgell
d54bb68270
Plane: prevent cross-track on some WP types
...
when finishing a takeoff or when a user forces a WP change don't do
any cross-tracking. This avoids a problem where the plane tries to
line up with a track completely unrelated to the track currently being
flown
11 years ago
Andrew Tridgell
16f1c6867f
Plane: remved int cast
...
not portable
11 years ago
Andrew Tridgell
8610d9a8ea
Plane: added GLIDE_SLOPE_MIN parameter
...
this is used to prevent slow glide slopes being used for small
altitude changes in missions. This allows more accurate tracking of
altitude with terrain changes
11 years ago
Andrew Tridgell
f983040401
Plane: more fixes for glide slope calculations
11 years ago
Andrew Tridgell
3e320d71ab
Plane: added TERRAIN_FOLLOW parameter
...
when enabled RTL, CRUISE and rally points will use terrain altitude
11 years ago
Andrew Tridgell
d18c00d6fc
Plane: split up altitude handling
...
this creates altitude.pde for altitude handling, getting ready to add
terrain following
11 years ago
Randy Mackay
873eb68d79
Plane: add support for DO_SET_ROI within mission
11 years ago
Randy Mackay
d8573d0722
Plane: loiter num turns from low byte of p1
...
This limits the maximum number of turns to 255 for plane
11 years ago
Randy Mackay
ac65119cfe
Plane: use common Log_Write_Camera
...
pair programmed with Craig Elder
11 years ago
Andrew Tridgell
ea086fa79c
Plane: added MAV_CMD_DO_INVERTED_FLIGHT support
...
allows for mission control over inverted flight
11 years ago
Andrew Tridgell
55e7f9b1d6
Plane: calculate next_turn_angle to prevent early WP completion
...
this should help for ball drop and camera trigger with straight line
runs
11 years ago
Andrew Tridgell
0306dbf5f1
Plane: moved auto mode variables to auto_state
11 years ago
Michael Day
568fc9e6c9
Plane: Now using AP_Rally library.
11 years ago
Andrew Tridgell
e19341ca32
Plane: convert to new GPS driver API
11 years ago
Michael Day
25f23cf16c
Plane: Sends MAV_SYS_STATUS_GEOFENCE and also allows GCS to enable/disable fence.
11 years ago
Andrew Tridgell
ce3f40b095
Plane: use should_log() for more msgs
11 years ago
Randy Mackay
3ce56f3086
Plane: integrate Mission cmd field changes
11 years ago