Commit Graph

14184 Commits

Author SHA1 Message Date
Kevin Lopez Alvarez
aa61a6231b AP_Compass: Remove comments and use correct board number 2017-11-07 11:57:36 +09:00
Kevin Lopez Alvarez
cf4e805470 AP_BoardConfig: Remove comments and use correct board number 2017-11-07 11:57:35 +09:00
Kevin Lopez Alvarez
eb9c3ee972 AP_InertialSensor: add ppro support 2017-11-07 11:57:34 +09:00
Kevin Lopez Alvarez
2f1553d5e2 HAL_PX4: add ppro support 2017-11-07 11:57:33 +09:00
Kevin Lopez Alvarez
80d4a87975 AP_Compass: add ppro support
disable lis3mdl for now
2017-11-07 11:57:32 +09:00
Kevin Lopez Alvarez
dea4b78387 AP_HAL_PX4: initial FMUv4pro support 2017-11-07 11:13:37 +09:00
Kevin Lopez Alvarez
905b34f84b AP_HAL: initial FMUv4pro support 2017-11-07 11:13:33 +09:00
Kevin Lopez Alvarez
5dcb9544ae AP_BoardConfig: initial FMUv4pro support 2017-11-07 11:13:30 +09:00
Kevin Lopez Alvarez
3f360c6ef4 AP_BattMonitor: initial FMUv4pro support 2017-11-07 11:13:27 +09:00
Kevin Lopez Alvarez
f82dc7f12a AP_Baro: initial FMUv4pro support 2017-11-07 11:13:24 +09:00
bnsgeyer
aec4045f91 AC_AttitudeControl: reset target attitude
added method to reset current vehicle attitude to support swash
behaviors in Trad Heli
2017-11-06 17:02:25 +09:00
Andrew Tridgell
2e11bef518 AP_Compass: merged compass changes from plane3.8 2017-11-06 16:56:02 +09:00
Andrew Tridgell
51e9091ca3 AP_Math: added rand_vec3f() 2017-11-06 16:55:59 +09:00
Lucas De Marchi
1d6b88ee68 AP_HAL_Linux: UARTDevice: never be the controlling terminal
If we are the controlling terminal for a tty device we will receive a
SIGHUP when the device disappears. Currently what happens is that we
simply stop the whole process. We don't want to fall off the sky due
to a bad device. This can happen for any reason, but it's more likely
if the UART is behind a USB connection.
2017-11-04 16:24:01 +09:00
Randy Mackay
78d1c55685 AP_Arming: check ahrs and gps differ by less than 10m 2017-11-04 16:02:43 +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
Lucas De Marchi
e37a084864 AP_HAL: change aerofc baud to 921600
(cherry picked from commit 2c72fc94ba)
2017-10-19 15:16:55 -07: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
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
Andrew Tridgell
841ce1b631 AP_HAL: fixed setting of HAL_MINIMIZE_FEATURES for FMUv3 2017-09-11 08:37:48 +09:00
Randy Mackay
b030905bd6 AP_LandingGear: add startup position selection parameter 2017-08-05 15:45:19 +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
Randy Mackay
b78bad2da9 AP_AHRS: set AP_Notify gps_glitching flag 2017-08-05 15:15:53 +09:00
Randy Mackay
f4dec5133e AP_Notify: add gps glitch notification 2017-08-05 15:15:51 +09:00
Matt
4c8ec2afaf AP_Notify: Fix for Oreo LED gyro init inidication
If parameter INS_GYRO_CAL is disabled, usually because operator is
arming on a moving vehicle such as a boat, the Oreo LEDs would wait
indefinitely for a gyro calibration that will never happen.  This
removes that dependency.  The LEDs will strobe blue only when gyros are
actually initializing. Not before.  Consequently, this greatly
simiplifies that portion of the code.
2017-08-05 15:14:35 +09:00
Randy Mackay
f7b6a897c3 SRV_Channel: update_aux_servo_function first checks function is valid
This resolves a bug in which the board could become unresponsive if an invalid function is selected
2017-08-05 15:14:18 +09:00
Michael du Breuil
685b28f51d AP_Baro: Avoid a FPE when ground pressure is negative 2017-08-05 15:13:53 +09:00
José Roberto de Souza
d985bffa1c AP_HAL_PX4: Map PX4_I2C_BUS_EXPANSION1 2017-08-04 09:07:50 -07:00
José Roberto de Souza
134f351a3e 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 09:07:45 -07:00
Randy Mackay
458449eca8 AP_Proximity: SF40c driver treats zero distances as invalid 2017-07-12 11:46:23 +09:00
Michael du Breuil
33231bf9b5 AP_Math: Add is_negative and is_positive helpers 2017-07-12 11:46:23 +09:00
Michael du Breuil
7d2b8b6bde AP_GPS: Fix SBF race condition on start
Unsure what the underlying problem is, but the length of the first string in
the initilisation_blob increasing resulted in a race condition, waiting
longer before retrying the message resolves it, but we still need to identify
the underlying problem. This patch just results in the GPS working with current
configurations. Tested against AsteRx-M firmware 3.6.3
2017-07-12 11:46:22 +09:00
Randy Mackay
53368a2afd AP_GPS: Revert Don't autodetect NMEA instances
This reverts commit bea48e8711.
2017-07-11 18:10:14 +09:00
Randy Mackay
af032414f0 AP_NavEKF3: final mag reset at 2.5m 2017-07-08 09:52:38 +09:00
Randy Mackay
3b8038fe27 AP_NavEKF2: final mag reset at 2.5m 2017-07-08 09:52:36 +09:00
Lucas De Marchi
462334f605 AP_HAL: add HAL_OS_POSIX_IO for aerofc-v1
What aerofc-v1 doesn't have is an sdcard, but it has posix-like API as
it's running on top of NuttX.

(cherry picked from commit eb70dbc6f5)
2017-07-06 18:16:13 -07:00
Randy Mackay
49f618f07a AP_InertialSensor: increase accel filter to 20hz 2017-07-03 10:13:40 +09:00
Rob Ratcliff
b52e1e0d55 AP_GPS: fix bug when injecting messages bigger than 255 bytes
Commit 5261654 changed the used injection method so change this method signature to use uint16 for message length like previous injection method did
2017-07-03 10:12:33 +09:00