Andrew Tridgell
ff70c87f0b
Plane: support 14 RC channels on PX4
2014-03-25 14:47:05 +11:00
Andrew Tridgell
09ed8d5819
Plane: updates for new RCInput API
2014-03-25 14:47:05 +11:00
Andrew Tridgell
b8781ccea7
Plane: fixed a compiler warning
2014-03-24 12:52:05 +11:00
Andrew Tridgell
e8b9f22b01
Plane: updates for GPS changes
2014-03-24 12:04:31 +11:00
Andrew Tridgell
d124fdb182
Plane: report compass unhealthy if primary compass unhealthy
2014-03-24 07:03:53 +11:00
Andrew Tridgell
f6b56b5d26
Plane: fixed mission resume at arbitrary waypoints
...
on completion of a mission a user can ask for it to resume at any wp
2014-03-21 10:21:37 +11:00
Andrew Tridgell
861523a00a
Plane: use TECS get_target_airspeed()
2014-03-20 17:34:33 +11:00
Michael Day
dd06756abf
Plane: Add Log_Write_Radio. MASK_LOG_PM must be set for logging to occur.
2014-03-20 09:56:37 +11:00
Andrew Tridgell
4257d8365c
Plane: removed check on target_component in ARM/DISARM
...
Thanks to DonLakeFlyer for finding this, see
https://github.com/diydrones/ardupilot/pull/909
2014-03-20 09:06:48 +11:00
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
Andrew Tridgell
8574303a94
Plane: treat PWM below 900 as invalid for mode switch
...
the FrSky X8R receiver will briefly give a PWM of 874 on channel 5
when connection is lost to the transmitter. We need to ensure this
doesn't cause a mode switch
2014-03-08 19:27:50 +11:00
Andrew Tridgell
3a3397d926
Plane: fixup throttle trim on failsafe
2014-03-08 19:27:50 +11:00
Andrew Tridgell
c9ebd6a175
Plane: improved RC failsafe handling
...
this forces all primary control inputs to the trim value on loss of RC
input, and reduces the timeout for loss of RC input to 1 second from 2
2014-03-08 16:20:54 +11:00
Andrew Tridgell
2cf98e476c
Plane: added support for a separate steering channel
...
good for ground steering on larger aircraft
2014-03-05 12:57:50 +11:00
Andrew Tridgell
8d95b953c3
Plane: removed some unused functions
2014-03-05 09:17:50 +11:00
Andrew Tridgell
0d6064034a
Plane: use percent_input() for flaps
2014-03-05 09:17:50 +11:00
Andrew Tridgell
e3952112ad
Plane: raise default LIM_PITCH_MAX to 20 degrees
...
15 is often not enough to climb
2014-03-03 15:49:04 +11:00
Andrew Tridgell
e784c81f3e
Plane: only send GPS2_RAW when we have a 2nd GPS
2014-03-03 07:05:52 +11:00
Andrew Tridgell
6b9e1edf38
Plane: disable GPS2 in HIL
2014-02-27 08:16:28 +11:00
Andrew Tridgell
07826096a2
Plane: support a 2nd GPS
2014-02-26 09:24:23 +11:00
Andrew Tridgell
95dd252f29
Plane: pass fix type to gps->setHIL()
2014-02-25 21:11:15 +11:00
Andrew Tridgell
8a4289b56f
Plane: remove unused variables
...
thanks to Mike McCauley
2014-02-24 18:49:14 +11:00
Andrew Tridgell
4bcf9b5d98
Plane: fixed logging of relative altitude
2014-02-23 08:18:43 +11:00
Andrew Tridgell
492e65acde
Plane: fix for HIL API change
2014-02-23 08:18:31 +11:00
Randy Mackay
a76e2ab02e
Plane: reserve NavEKF slot in param list even when not used
...
Although this wasn't a problem immediatley, if someone had added a
parameter after k_param_NavEKF it's position in eeprom could have moved
as AP_AHRS_NAVEKF_AVAILABLE was enabled/disabled
2014-02-21 13:53:05 +09:00
Andrew Tridgell
2908beb9bd
Plane: fixed Log when disarmed value in docs
2014-02-19 19:01:48 +11:00
Andrew Tridgell
33851030a4
Plane: use ahrs.get_armed()
2014-02-19 10:53:26 +11:00
Andrew Tridgell
9282c8d0d9
Plane: allow for a wider range of values on the control switch
2014-02-17 13:58:11 +11:00
Paul Riseborough
98f72a4864
Plane : changed useage of ahrs.set_correct_centrifugal
2014-02-16 22:34:52 +11:00
Andrew Tridgell
99f2c8387c
Plane: change to Compass::learn_offsets
2014-02-16 13:22:06 +11:00
Andrew Tridgell
59a56c9b46
Plane: enable Baro logging
2014-02-15 07:29:39 +11:00
Andrew Tridgell
566b0ccc61
Plane: call esimate_wind()
2014-02-15 05:48:24 +11:00
Andrew Tridgell
d7839aa4ab
Plane: removed duplicate log description
2014-02-15 05:48:24 +11:00
Andrew Tridgell
1001df0e56
Plane: removed extra log enum
2014-02-15 05:48:23 +11:00
Andrew Tridgell
35a9201c9a
Plane: fixed comma
2014-02-15 05:48:23 +11:00
Andrew Tridgell
a7faa58879
Plane: fixed up merge errors
2014-02-15 05:48:23 +11:00
Andrew Tridgell
a551703877
Plane: fixed parameter build for NavEKF
2014-02-15 05:48:22 +11:00
Paul Riseborough
8c4b0b9be9
Plane : NavEKF Mavlink tunable parameter - first attempt
2014-02-15 05:48:22 +11:00
Paul Riseborough
24f8f02942
Plane : disable AHRS centrifugal corrections when disarmed
2014-02-15 05:48:20 +11:00
Andrew Tridgell
bb4789a875
Plane: use common EKF logging
2014-02-15 05:48:16 +11:00
Andrew Tridgell
4646682a31
Plane: use common send_ahrs2()
2014-02-15 05:48:16 +11:00
Andrew Tridgell
57e0eb4db5
Plane: use a const reference for home
2014-02-15 05:48:15 +11:00
Andrew Tridgell
2817a11f23
Plane: added AHR2 and SIM logging
2014-02-15 05:48:14 +11:00
Andrew Tridgell
11337ab2df
Plane: updates for AHRS holding home position
2014-02-15 05:29:47 +11:00
Andrew Tridgell
df5195e2c9
Plane: change for new AHRS API
2014-02-15 05:29:47 +11:00
Andrew Tridgell
e39247868c
Plane: cleanup HIL defines
2014-02-15 05:29:46 +11:00
Andrew Tridgell
2cd6efa23e
Plane: added DF logging of secondary AHRS solution
2014-02-15 05:29:45 +11:00
Andrew Tridgell
99cfaf6097
Plane: switched to AHRS2 message for reporting
2014-02-15 05:29:45 +11:00
Andrew Tridgell
9ac886f58d
Plane: use AP_AHRS_NavEKF when available
2014-02-15 05:28:09 +11:00
Paul Riseborough
e0e4b1aefa
Plane : Updated NavEKF flash data logging
2014-02-15 05:28:09 +11:00
Paul Riseborough
d6ead64083
Plane : Additional NavEKF flash logging
2014-02-15 05:28:08 +11:00