Randy Mackay
1b19ee865d
Rover: remove active-loiter and set-auto-wp
...
these are now handled by auto mode
2017-08-05 11:20:58 +09:00
Randy Mackay
974453607e
Rover: replace do-yaw with nav-set-yaw-speed
2017-08-05 11:20:58 +09:00
Randy Mackay
27e833ebd1
Rover: verify_within_distance gets distance directly from auto mode
2017-08-05 11:20:58 +09:00
Randy Mackay
3863542194
Rover: adjust set-position-target-local-ned handling
...
add support for just yaw or yaw-rate
remove support for simultaneous position and velocity
2017-08-05 11:20:58 +09:00
Randy Mackay
46faece76b
Rover: set-attitude-target accepts quaternions for target heading
2017-08-05 11:20:58 +09:00
Randy Mackay
d56d222971
Rover: set-attitude-target consumes thrust in -1 to +1 range
...
This makes the processing consistent with the mavlink spec
2017-08-05 11:20:58 +09:00
Randy Mackay
b9db9229d9
Rover: replace vehicle code guided methods with calls to guided mode class
...
set_guided_WP replaced by mode_guided.set_desired_location
nav_set_yaw_speed replaced with mode_guided.set_desired_heading_and_speed
set_guided_velocity replaced with mode_guided.set_desired_turn_rate_and_speed
guided_control structure replaced with mode_guided members
use_pivot_steering accepts yaw-error argument instead of calculating it itself internally
2017-08-05 11:20:58 +09:00
Randy Mackay
783f8243df
Rover: use mode class's get_distance_to_destination and speed_error
...
used for reporting to GCS and logging
2017-08-05 11:20:58 +09:00
Randy Mackay
f71db5ae05
Rover: rtl mode refactoring
...
slow down for turns
2017-08-05 11:20:58 +09:00
Randy Mackay
946a0a8e54
Rover: guided mode refactoring
...
add set-desired methods
add get_distance_to_destination
fix to one interation with no update to motors
slow down for turns
2017-08-05 11:20:58 +09:00
Randy Mackay
279491ed20
Rover: auto mode refactoring
...
updating mission is handled by the vehicle code
slows down for turns
add active at destination
remove setting of loiter start time
removes unused calc_nav_steer
2017-08-05 11:20:58 +09:00
Randy Mackay
2accb5831d
Rover: mode refactoring
...
add ahrs reference
add set-desired-location method
move _reached_destination member in from child
calc_lateral_acceleration args renamed and added comemnts
calc_lateral_acceleration updates _yaw_error_cd
remove calc_lateral_acceleration method with no arguments
calc_throttle updates _speed_error and becomes protected
remove unused variables from calc_throttle
calc_reduced_speed_for_turn_or_distance reworked
do not use rover throttle or rtl_complete
calc_nav_steer comment updates
remove unused update_navigation
2017-08-05 11:20:58 +09:00
Randy Mackay
638ba02d5f
AP_Mission: add support for Set-Yaw-Speed command
...
This is initially only intended for use by Rover
2017-08-05 11:20:58 +09:00
Randy Mackay
8dadbaa850
Copter: landing gear init on startup
2017-08-05 11:20:41 +09:00
Randy Mackay
42cab6b533
AP_LandingGear: add startup position selection parameter
2017-08-05 11:20:41 +09:00
Randy Mackay
c3fd354452
Copter: enable landing gear based on RC output
...
previously it was enabled based on the transmitter's auxiliary switch
being setup
2017-08-05 11:20:41 +09:00
Randy Mackay
5b8e7cfdf9
Copter: landinggear_update formatting change
...
no functional change
2017-08-05 11:20:41 +09:00
Francisco Ferreira
e0f4d3dbe5
AP_HAL: remove unused HAL_AIRSPEED_MS4515DO_I2C_BUS macro
2017-08-05 03:15:53 +01:00
Francisco Ferreira
d3ed4420e6
AP_Airspeed: remove unused MS4525D0_I2C_BUS macro
2017-08-05 03:15:52 +01:00
Vinicius Juvinski
78deddabda
AP_Airspeed: MS4525: Add support to I2C Bus 2
...
BBBMini use I2C Bus number 2 and MS4525 just use up to bus 1, so I
addedd this bus 2 to address struct.
2017-08-05 03:15:32 +01:00
José Roberto de Souza
5bbde92254
modules: PX4Firmware: Update PX4Firmware with AeroFC changes
...
There is some changes in PX4Firmware needed to finish the
swap of GPS UART and to bring up the additional I2C bus.
2017-08-04 12:47:01 -07:00
José Roberto de Souza
9ee007f924
AP_HAL_PX4: Map PX4_I2C_BUS_EXPANSION1
2017-08-04 12:47:01 -07:00
José Roberto de Souza
e674d6ee20
AP_HAL_PX4: aeorfc: Move GPS to UART7
...
The UART3 also have the I2C bus 2 functions so moving GPS to UART7 to
have one additional I2C.
To keep GPS working is also necessary update the FPGA RTL to version
0xC1 or higher.
2017-08-04 12:47:01 -07:00
Francisco Ferreira
6cf8791eb5
AP_Compass: correct comment in LIS3MDL driver
...
Commit 17f2393c1b
decreased timer frequency but didn't change comment to match
2017-08-04 19:56:26 +01:00
Peter Barker
2437260f8a
Tools: copter horizontal fence test waits for disarm then rearms
2017-08-04 17:44:43 +01:00
Peter Barker
dd09bb338e
Tools: wait for vehicle to disarm after handling throttle failsafe
2017-08-04 17:44:43 +01:00
Lucas De Marchi
5ea1784838
global: remove AP_HAL::in_timerprocess()
...
This is not used and in the only places it would make sense would be
internally to the scheduler so remove it.
2017-08-03 20:25:14 -07:00
Lucas De Marchi
08637f1dcc
AP_HAL_VRBRAIN: Scheduler: replace use of in_timerprocess()
...
This function actually checks if we are not in the main thread rather
than if we are in the timer thread.
Add a new function that does what it's supposed to do.
2017-08-03 20:25:11 -07:00
Lucas De Marchi
1aaba01622
AP_HAL_QURT: Scheduler: replace use of in_timerprocess()
...
This function actually checks if we are not in the main thread rather
than if we are in the timer thread.
Add a new function that does what it's supposed to do.
2017-08-03 20:25:07 -07:00
Lucas De Marchi
9e66938f68
AP_HAL_PX4: Scheduler: replace use of in_timerprocess()
...
This function actually checks if we are not in the main thread rather
than if we are in the timer thread.
Add a new function that does what it's supposed to do.
2017-08-03 20:25:01 -07:00
Lucas De Marchi
93a558ce5c
AP_HAL_Linux: do not call delay callbacks on other threads
...
If a thread other than the main one calls Scheduler::delay() we could
end up triggering the call of delay callbacks. Those should only ever
happen on the main thread.
2017-08-03 20:24:57 -07:00
Peter Barker
e0879c6fce
Sub: stop sending MSG_SERVO_OUT messages
...
This didn't ever result in a message being sent on Sub
2017-08-03 14:34:33 +01:00
Peter Barker
db080ed60e
Copter: stop sending MSG_SERVO_OUT messages
...
This didn't ever result in a message being sent on Copter
2017-08-03 14:34:33 +01:00
Peter Barker
137d513fdc
Rover: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
33858187ef
Tracker: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
1fcab08bd0
Sub: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
4cb94b80ee
Plane: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
7c37bb324b
Copter: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
ad2c3d27ec
GCS_MAVLink: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
dbac7447d6
Rover: move try_send_message send_hwstatus up
2017-08-03 14:34:33 +01:00
Peter Barker
e08b87763e
Tracker: move try_send_message send_hwstatus up
2017-08-03 14:34:31 +01:00
Peter Barker
7c5ed54ffc
Sub: move try_send_message send_hwstatus up
2017-08-03 14:33:37 +01:00
Peter Barker
089f6f4650
Plane: move try_send_message send_hwstatus up
2017-08-03 14:33:37 +01:00
Peter Barker
431e3443bd
Copter: move try_send_message send_hwstatus up
2017-08-03 14:33:37 +01:00
Peter Barker
679bb7f7a5
GCS_MAVLink: move try_send_message send_hwstatus up
2017-08-03 14:33:37 +01:00
Peter Barker
4da89a948a
Rover: move try_send_message mission handling up
2017-08-03 14:33:37 +01:00
Peter Barker
de0c6d7ca5
Tracker: move try_send_message mission handling up
2017-08-03 14:33:31 +01:00
Peter Barker
7a72c3b1fb
Sub: move try_send_message mission handling up
2017-08-03 14:24:47 +01:00
Peter Barker
fee9e83881
Plane: move try_send_message mission handling up
2017-08-03 14:24:47 +01:00
Peter Barker
3e5665735f
Copter: move try_send_message mission handling up
2017-08-03 14:24:47 +01:00