Commit Graph

14155 Commits

Author SHA1 Message Date
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
Leonard Hall
cdf7d26d5d AC_AttControl: save accel max using shorter set_and_save
no functional change
2017-07-03 10:11:45 +09:00
Leonard Hall
3fcd4517a1 AC_AttControl: add step input for autotune 2017-07-03 10:11:32 +09:00
priseborough
977b8b5653 AP_NavEKF3: Improve variable names and documentation
Also remove unnecessary calculation of innov * gain
2017-07-03 10:10:43 +09:00
priseborough
08ddae8882 AP_NavEKF3: Clean up aiding mode logic using switch statements 2017-07-03 10:10:40 +09:00
priseborough
b847a6e38c AP_NavEKF3: Fix bugs causing height drift when using range beacons 2017-07-03 10:10:38 +09:00
priseborough
618644addc AP_NavEKF3: Fix calculation of predicted LOS rate in terrain estimator 2017-07-03 10:09:45 +09:00
priseborough
01f959c1ab AP_NavEKF2: Fix calculation of predicted LOS rate in terrain estimator 2017-07-03 10:09:42 +09:00
priseborough
0d7d804bd5 AP_NavEKF3: Fix terrain estimator innovation consistency check 2017-07-03 10:09:09 +09:00
priseborough
fc36bd7874 AP_NavEKF2: Fix terrain estimator innovation consistency check 2017-07-03 10:09:06 +09:00
priseborough
647fb51688 AP_NavEKF3: Fix bug in flow fusion for terrain estimation
Also remove unused class variables
2017-07-03 10:09:03 +09:00
priseborough
19ef7e6d96 AP_NavEKF2: Fix bug in flow fusion for terrain estimation
Also remove unused class variables
2017-07-03 10:09:01 +09:00
Michael du Breuil
bea48e8711 AP_GPS: Don't autodetect NMEA instances 2017-07-03 10:08:31 +09:00
priseborough
aafacd0f8e AP_GPS: Fix bug in calculation of blended GPS delay 2017-07-03 09:42:15 +09:00
Randy Mackay
a0d1b3b19a AP_Beacon: fix pozyx west-east processing 2017-06-15 10:33:50 +09:00
Randy Mackay
f8b5714ced DataFlash: protect against large testRatio from EKF
This should be resolved in the EKF but for now this stops the floating point exception
2017-06-15 10:33:45 +09:00
Randy Mackay
a6982dedf0 AP_LandingGear: set pwm only when set_position called
Also simplify interface and internal state
2017-06-15 10:33:17 +09:00
Randy Mackay
7a5ef83d53 LandingGear: remove unused enabled method
Also minor formatting fix
2017-06-15 10:33:12 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
cc632a2825 AP_LandingGear: Improve the PWM parameters descriptions 2017-06-15 10:32:01 +09:00
Peter Barker
bf6e7ba6ec DataFlash: correct dataflash examples 2017-06-15 10:29:15 +09:00
Peter Barker
268d6523e9 DataFlash: check all backends for sensor health 2017-06-15 10:29:05 +09:00
Peter Barker
cc7d75ea5d DataFlash: StartUnstartedLogging replaces logging_started/start_logging 2017-06-15 10:28:49 +09:00
Peter Barker
c9a4a6d772 DataFlash: eliminate calls to manipulate _writes_enabled 2017-06-15 10:28:23 +09:00
Peter Barker
9464bc6173 DataFlash: create a WritesOK method for WritePrioritisedBlock 2017-06-15 10:28:11 +09:00
Peter Barker
694b42c8f4 AP_BoardConfig: add public method returning true if on sensor error 2017-06-15 10:27:20 +09:00
murata
894b759149 AP_Notify: Change to the value of boolean. 2017-06-15 10:26:19 +09:00
Matt
fc3406d07f AP_Notify: OreoLED rework
Reworked the process flow.  Created the aviation vs rover themes.
Created visual operator feedback for prearm checks, GPS, EKF, gyro init,
radio failsafe, and low battery. This also includes work by Hugh Eaves
to open up the full extended properties of the Oreo LEDs.  Not only are
far more functions available, but you can override and do custom things
via mavlink.
2017-06-15 10:26:06 +09:00
Matt
ddd327e365 AP_Notify: Complete rework of notify device selection
Jaime did the hard work on this one.  He reworked notify device
selection to take place on init rather than on compile like before.  The
notify decivces are mostly set on compile using preprocessor directives
based on board type.  I created NTF_OREO_THEME.  This will allow the
user to enable/disable the OreoLED driver. And it also allows you to
select between aircraft and rover lighting themes. This allows the Solo
to use the OreoLEDs, and doesn't waste the memory on vehicles not
equipped with Oreo LEDs. The OreoLED driver is restricted to Pixhawk 2
FCs by proprocessor directive due to memory constraints. So it will
never work by accident on another board.

There is also a new notify flag for GPS Fusion.  This flag is true when
the EKF is happy with the GPS, actively using it for position
information.
2017-06-15 10:26:03 +09:00
Peter Barker
4adf8a83a6 AP_Notify: remove non-required initialisation of variables
These objects are dynamically allocated, and we zero the memory
as we allocate them
2017-06-15 10:25:38 +09:00
Peter Barker
49b8d8319c AP_Notify: simplify scrolling code 2017-06-15 10:25:35 +09:00