Commit Graph

27468 Commits

Author SHA1 Message Date
Randy Mackay
075564af2c Copter: support SET_GPS_GLOBAL_ORIGIN
also remove setting of origin from DO_SET_HOME command
initialise ekf_origin location when consuming SET_GPS_GLOBAL_ORIGIN
set_ekf_origin performs sanity check on location
2017-11-04 15:53:18 +09:00
Randy Mackay
9a45940c25 GCS_MAVLink: add send_ekf_origin 2017-11-04 15:53:11 +09:00
bnsgeyer
d66a980be3 AP_Motors: TradHeli - fixed servo test function 2017-11-04 15:09:15 +09:00
Andrew Tridgell
29a8127fed HAL_PX4: fixed a race condition on i2c init
we could call init on two devices with the same name, which caused
init_ok to be false. This could cause the SMBus battery to fail to
initialise

Thanks to Michael duBreuil for finding this!
2017-11-04 15:07:41 +09:00
Andrew Tridgell
61da180881 Copter: fixed motor runup check for heli
for all auto-throttle modes we should not allow a mode change to the
mode if the motor runup is not complete.

This moves the code to the set_mode() so it applies to all modes

fixes issue #6956
2017-11-04 15:06:04 +09:00
Andrew Tridgell
02f6f3b87b Copter: fixed collective input with H_SV_MAN=1 for heli
when H_SV_MAN=1 we do direct pass-thru so the user can test swash
range. The problem is that it uses norm_input() for throttle, which
depends on RC3_TRIM. Nowhere else in heli or copter do we depend on
RC3_TRIM, so the user gets a misleading idea of behaviour when testing
their swash.
2017-11-04 15:05:58 +09:00
Lucas De Marchi
e37a084864 AP_HAL: change aerofc baud to 921600
(cherry picked from commit 2c72fc94ba)
2017-10-19 15:16:55 -07:00
Lucas De Marchi
37144bde3c PX4Firmware: aerofc-v1: add support to baud of 921600 2017-10-19 15:16:55 -07:00
Lucas De Marchi
6fe09cd3b8 PX4NuttX: add fix to stm32 flash 2017-10-19 15:16:55 -07:00
Randy Mackay
1a85c237cb Copter: version to 3.5.3 2017-09-21 10:33:40 +09:00
Randy Mackay
9eb1db3dd2 Copter: 3.5.3 release notes 2017-09-21 10:33:05 +09:00
Randy Mackay
528d4d83d7 Copter: version to 3.5.3-rc1 2017-09-12 14:38:59 +09:00
Randy Mackay
ac108b31fa Copter: 3.5.3-rc1 release notes 2017-09-12 14:38:31 +09:00
Peter Barker
7ea991c724 DataFlash: file not being initialised means logging is failed 2017-09-12 14:26:27 +09:00
Michael du Breuil
c39ae3392e AP_GPS: SBF: Reject short packets early, allow 256 byte long messages to be decoded 2017-09-12 14:16:20 +09:00
Andrew Tridgell
697e856b12 AP_GPS: make SBF driver more robust
this fixes a crash bug in the SBF GPS driver where a badly formed packet
could cause crc16_ccitt to reference invalid memory
2017-09-11 08:44:31 +09:00
Randy Mackay
bcb136100c Replay: integrate simpler Log_Write_EKF 2017-09-11 08:43:04 +09:00
Randy Mackay
659aa0ce59 Tracker: integrate simpler Log_Write_EKF 2017-09-11 08:43:01 +09:00
Randy Mackay
6a4c8efd7b Plane: integrate simpler Log_Write_EKF 2017-09-11 08:42:58 +09:00
Randy Mackay
b7921a8341 Rover: integrate simpler Log_Write_EKF 2017-09-11 08:42:56 +09:00
Randy Mackay
2ab3c5a9c3 Sub: remove enabled check from optflow init 2017-09-11 08:42:52 +09:00
Randy Mackay
8cd5607231 Sub: integrate simpler Log_Write_EKF 2017-09-11 08:42:49 +09:00
Randy Mackay
ba6ca9511d Copter: remove enabled check from optflow init 2017-09-11 08:42:42 +09:00
Randy Mackay
215bd4208f Copter: integrate simpler Log_Write_EKF 2017-09-11 08:42:38 +09:00
Randy Mackay
179ebc5162 DataFlash: removed unused optFlowEnabled from Log_Write_EKF 2017-09-11 08:42:29 +09:00
Randy Mackay
6d1619f7ac AP_OpticalFlow: minor order declaration change
non-functional change
2017-09-11 08:42:24 +09:00
Randy Mackay
c8c8868975 AP_OpticalFlow: init checks if enabled 2017-09-11 08:42:21 +09:00
Randy Mackay
448bd34590 AP_OpticalFlow: px4flow retries init 10 times at startup
This resolves an issue in which some px4flow sensors are slow to startup
2017-09-11 08:42:18 +09:00
Randy Mackay
c76f3294cd AP_OpticalFlow: failure to init leaves enabled unchanged 2017-09-11 08:42:15 +09:00
Randy Mackay
ac36193481 AP_OpticalFlow: rename BUS_ID parameter to ADDR
This makes the parameter more consistent with RangeFinder
2017-09-11 08:42:12 +09:00
chobits
c1e9a30c1d AP_AHRS: fix get_relative_position_NE_home calcalation 2017-09-11 08:40:11 +09:00
Randy Mackay
7fee271e73 Copter: minor comment and formatting fixes
no functional change
2017-09-11 08:38:56 +09:00
Randy Mackay
a603e2485c Copter: guided stops rotating if no updates received for 3 seconds 2017-09-11 08:38:44 +09:00
Randy Mackay
0021e46a79 Copter: guided_set_destination accepts relative yaw 2017-09-11 08:38:40 +09:00
Randy Mackay
ab86fd56f1 Copter: set_auto_yaw_look_at_heading takes bool for relative angle arg
No functional change
2017-09-11 08:38:38 +09:00
Randy Mackay
ba179d0af4 Copter: add auto-yaw-rate and replace guided_angle_state.use_yaw_rate
We use the auto_yaw_mode in auto and guided modes to allow various yaw behaviours
This commit adds a new AUTO_YAW_RATE control to the mode and uses it within guided mode.
This new RATE control is not currently used within auto mode because there is no way (yet) for a mission command to specify a desired rate.
2017-09-11 08:38:35 +09:00
kouseii
2e6e429c04 Copter: guided mode supports heading and yaw-rate target 2017-09-11 08:38:32 +09:00
Andrew Tridgell
841ce1b631 AP_HAL: fixed setting of HAL_MINIMIZE_FEATURES for FMUv3 2017-09-11 08:37:48 +09:00
Randy Mackay
4322ffda37 Copter: version to 3.5.2 2017-08-14 11:40:25 +09:00
Randy Mackay
d12734128c Copter: 3.5.2 release notes 2017-08-14 11:39:43 +09:00
Randy Mackay
c58403a173 Copter: version to 3.5.2-rc1 2017-08-05 16:39:47 +09:00
Randy Mackay
fe14b60381 Copter: 3.5.2-rc2 release notes 2017-08-05 16:38:15 +09:00
Randy Mackay
20fee3d83b Copter: landing gear init on startup 2017-08-05 15:45:19 +09:00
Randy Mackay
b030905bd6 AP_LandingGear: add startup position selection parameter 2017-08-05 15:45:19 +09:00
Randy Mackay
52600c1958 Copter: enable landing gear based on RC output
previously it was enabled based on the transmitter's auxiliary switch
being setup
2017-08-05 15:45:18 +09:00
Randy Mackay
5a664bc348 Copter: landinggear_update formatting change
no functional change
2017-08-05 15:45:17 +09:00
Randy Mackay
106c1b4fde Copter: minor format fix to landing-gear update function 2017-08-05 15:45:16 +09:00
Randy Mackay
d215ed1eae AP_Arming: rename _MIN_VOLT to _VOLT_MIN
Also _MIN_VOLT2 to _VOLT2_MIN
2017-08-05 15:45:16 +09:00
Randy Mackay
987eda9f38 AP_Arming: minor variable type change
no functional change
2017-08-05 15:45:15 +09:00
Randy Mackay
e7707f6c84 AP_Arming: Copter gets MIN_VOLT parameters 2017-08-05 15:45:14 +09:00