Commit Graph

1272 Commits

Author SHA1 Message Date
Andrew Tridgell
ce3f40b095 Plane: use should_log() for more msgs 2014-03-19 14:18:14 +11:00
Andrew Tridgell
abfcee1cef Plane: fixed channel reversal in HIL
makes it possible to reverse channels
2014-03-19 14:17:40 +11:00
Randy Mackay
3ce56f3086 Plane: integrate Mission cmd field changes 2014-03-19 12:14:24 +09:00
Andrew Tridgell
4031f7d368 Plane: use common deferred message handling 2014-03-19 12:14:17 +09:00
Andrew Tridgell
b74fddade3 Plane: use common MISSION_ITEM code 2014-03-19 12:14:11 +09:00
Andrew Tridgell
0d39f354b0 Plane: use new common MAVLink code 2014-03-19 12:13:38 +09:00
Andrew Tridgell
7d3523b4a7 Plane: use _send_buf() functions to reduce stack usage in MAVLink replies
this re-uses the incoming message buffer in constructing the reply
2014-03-19 12:13:28 +09:00
Andrew Tridgell
537e78f9fa Plane: much faster mission upload
send next WP request immediately if possible. This speeds up mission
upload on USB by about 10x
2014-03-19 12:13:27 +09:00
Randy Mackay
1ad743c4e1 Plane: use common GCS_MAVLink handle_mission methods 2014-03-19 12:13:21 +09:00
Andrew Tridgell
740ecc2c1b Plane: use new handle_mission_request() function 2014-03-19 12:13:12 +09:00
Randy Mackay
2184ff1e58 Plane: set_next_WP fn accepts Location 2014-03-19 12:13:06 +09:00
Randy Mackay
96b2e88e36 Plane: add comment to GCS_Mavlink.pde 2014-03-19 12:13:03 +09:00
Randy Mackay
ce9f2ef7f0 Plane: minor command logic comments and reordering 2014-03-19 12:13:01 +09:00
Randy Mackay
ad4f30e790 Plane: use mission command specific structures 2014-03-19 12:12:52 +09:00
Randy Mackay
9ef920b0be Plane: integrate dataflash Log_Write_MavCmd 2014-03-19 12:12:45 +09:00
Andrew Tridgell
4bf140aeac Plane: make next_WP and prev_WP be locations
having a command ID in them doesn't really make sense

Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:12:39 +09:00
Randy Mackay
f1b97fee53 Plane: correct typo re RTL home with no mission 2014-03-19 12:12:33 +09:00
Randy Mackay
7f21e3885e Plane: RTL home when AUTO run with no mission 2014-03-19 12:12:31 +09:00
Randy Mackay
6b789cd711 Plane: rename next_nav_command to auto_rtl_command
This command is only used to get the vehicle home (or to a rally point)
after the mission has completed
2014-03-19 12:12:30 +09:00
Randy Mackay
982ce56d2b Plane: bug fix to set_current_cmd
When set_current_cmd mavlink message is received, resume mission only if
the mission has completed.
Stop mission when vehicle leaves AUTO mode.
2014-03-19 12:12:28 +09:00
Andrew Tridgell
3e05baf95c Plane: fixed build (forward declarations) 2014-03-19 12:12:25 +09:00
Andrew Tridgell
2b5bf45e83 Plane: only activate mission callbacks in AUTO mode 2014-03-19 12:12:24 +09:00
Andrew Tridgell
3277416aeb Plane: fixed relative altitudes and resuming mission
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:12:22 +09:00
Andrew Tridgell
4992e2e2cf Plane: use mission.resume() not mission.start() 2014-03-19 12:12:19 +09:00
Andrew Tridgell
d4510d9b9b Plane: altitude for do_set_home() is in meters 2014-03-19 12:12:18 +09:00
Randy Mackay
27969175d9 Plane: bug fix to Loiter after mission completes 2014-03-19 12:12:16 +09:00
Randy Mackay
790a907811 Plane: use Dataflash lib's Log_Write_Cmd 2014-03-19 12:12:08 +09:00
Randy Mackay
033b7eca9e Plane: integrate variable max num commands 2014-03-19 12:12:02 +09:00
Randy Mackay
fcea127537 Plane: CLI uses HAL eeprom storage size definition 2014-03-19 12:11:59 +09:00
Randy Mackay
693ce27bf6 Plane: pass eeprom start to Mission constructor 2014-03-19 12:11:58 +09:00
Randy Mackay
36a5287de5 Plane: call mission.init during startup 2014-03-19 12:11:49 +09:00
Randy Mackay
6e60730c89 Plane: cli test checks read_cmd success before printing 2014-03-19 12:11:41 +09:00
Randy Mackay
ccb2daaed3 Plane: Log_Write_Startup checks success of cmd read before logging 2014-03-19 12:11:40 +09:00
Randy Mackay
0827506533 Plane: remove unused WAIT_COMMAND 2014-03-19 12:11:24 +09:00
Randy Mackay
53add04d36 Plane: remove some comments in commands_logic.pde 2014-03-19 12:11:22 +09:00
Randy Mackay
802ab79c84 Plane: bug fix for setting flight_stage based on current command 2014-03-19 12:11:19 +09:00
Randy Mackay
c4364a8ff5 Plane: remove unused nonnav_command variables
non_nav_command_ID and next_nonnav_command variables removed
2014-03-19 12:11:18 +09:00
Randy Mackay
52a08a5284 Plane: CMD dataflash logs use uint16 for total and num
Also bug fix for Log_Write_Cmd definition when logging disabled
2014-03-19 12:11:16 +09:00
Andrew Tridgell
f036aa1780 Plane: fixed altitude for takeoff and takeoff heading
fixes for AP_Mission integration

Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:11:09 +09:00
Randy Mackay
601cde2a32 Plane: remove alt_in_cm from mavlink to cmd conversion 2014-03-19 12:11:03 +09:00
Randy Mackay
bc86a5043a Plane: bug fix for relative alt 2014-03-19 12:11:00 +09:00
Randy Mackay
9446e9fd2e Plane: integrate AP_Mission library 2014-03-19 12:10:58 +09:00
Randy Mackay
ddba6f5c19 Plane: mission integration into GCS_Mavlink.pde 2014-03-19 12:10:57 +09:00
Randy Mackay
97f09ab426 Plane: dataflash logging to use Mission command 2014-03-19 12:10:55 +09:00
Randy Mackay
fdaf3fc177 Plane: add AP_Mission object to parameter list 2014-03-19 12:10:54 +09:00
Randy Mackay
e88f1953d0 Plane: use common location options masks 2014-03-19 12:10:21 +09:00
Andrew Tridgell
2b8cc1a1df Plane: use set_mode() in do_RTL()
thanks to Randy for spotting this
2014-03-15 22:15:06 +11:00
Andrew Tridgell
eb7db82210 Plane: altitude for do_set_home() is in meters 2014-03-14 11:26:10 +11:00
Andrew Tridgell
d595f36ca5 Plane: print PX4 compass type 2014-03-13 16:26:25 +11:00
Andrew Tridgell
65ae9663d4 Plane: set 2nd GPS as secondary 2014-03-08 21:48:12 +11:00