Commit Graph

14273 Commits

Author SHA1 Message Date
Randy Mackay
45147af455 AP_Beacon: fit SITL beacon location 2017-06-09 15:24:36 +09:00
Randy Mackay
db45442de2 AP_Math: remove unused angle method 2017-06-09 15:21:58 +09:00
Andrew Tridgell
bcd305c821 AP_Compass: fixes for merge with master 2017-06-09 14:56:33 +10:00
Andrew Tridgell
04430457d5 AP_Compass: attempts to diagnose the twitches in MMC3416 2017-06-09 14:56:33 +10:00
Andrew Tridgell
36932a2959 AP_Compass: implement full state machine for MMC3416
this uses 100Hz readings most of the time, but does slow offset
readings every 50 samples
2017-06-09 14:56:33 +10:00
Andrew Tridgell
167988b5c4 AP_Compass: implement MMC3416 temperature compensation
this is much slower, but removes temperature offset
2017-06-09 14:56:33 +10:00
Andrew Tridgell
736fb715ec AP_Compass: MMC3416 magnetometer driver 2017-06-09 14:56:33 +10:00
Francisco Ferreira
a960c6526c
AP_Rangefinder: set type for VL53L0X 2017-06-08 01:32:11 +01:00
Pierre Kancir
d5cc1e64ed GCS_Common: rename send_rangefinder to send_rangefinder_downward 2017-06-08 01:32:04 +01:00
Pierre Kancir
e9685ba13e GCS_MAVLink: add rangefinder msg 2017-06-08 01:22:07 +01:00
Pierre Kancir
0848d96354 GCS_MAVLink: add send_distance_sensor_downward function 2017-06-08 01:22:07 +01:00
Pierre Kancir
f0369bc507 GCS_MAVLink: add distance sensor msg 2017-06-08 01:22:07 +01:00
Pierre Kancir
38540b4dcc AP_Proximity: add PROXIMITY_MAX_DIRECTION and PROXIMITY_SENSOR_ID_START 2017-06-08 01:22:07 +01:00
Pierre Kancir
8b38bd2e33 AP_RangeFinder: add sensor type to backend 2017-06-08 01:22:07 +01:00
Andrew Tridgell
b29db0aa5b AP_RangeFinder: implement VL53L0X rangefinder 2017-06-07 23:05:01 +01:00
Peter Barker
5c15c1e4d2 AP_BoardConfig: add public method returning true if on sensor error 2017-06-07 12:56:46 +01:00
Randy Mackay
1ce2a7fcee AP_Compass: resolve AK09916 driver compiler warning 2017-06-07 20:38:12 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
ca72f4d283 AC_Stats: NFC Statistics are read-only variables 2017-06-07 19:53:09 +09:00
Pierre Kancir
1c8d169814 AP_HAL_SITL: sitl_airspeed simplify include 2017-06-07 20:29:02 +10:00
Pierre Kancir
775ca9303a AP_HAL_SITL: sitl_airspeed correct style 2017-06-07 20:29:02 +10:00
Pierre Kancir
0afc907b0a AP_HAL_SITL: rename sitl_ins & _update_ins to sitl_airspeed & _update_airspeed 2017-06-07 20:29:02 +10:00
Pierre Kancir
b176ba53d7 SIM_Aircraft: move advance in time from update_position to time_advance 2017-06-07 20:29:02 +10:00
Pierre Kancir
579f655e76 SIM_Aircraft: change define in favor of static constexpr 2017-06-07 20:29:02 +10:00
Pierre Kancir
22dd81e298 AP_HAL_SITL: rangefinder const correctness 2017-06-07 20:28:25 +10:00
Pierre Kancir
3f045a4905 AP_HAL_SITL: airspeed_simulated use is_zero 2017-06-07 20:28:25 +10:00
Pierre Kancir
148e84320b SITL: Sim_aircraft correct style 2017-06-07 20:28:25 +10:00
Pierre Kancir
4acf4538c7 AP_HAL_SITL: rangefinder don't adjust value from FDM on external data 2017-06-07 20:28:25 +10:00
Pierre Kancir
599e3d7b83 SITL: make range finder a standalone sitl plugin 2017-06-07 20:28:25 +10:00
Andrew Tridgell
0e27d4bd6f AP_Soaring: fixed Log_Write call 2017-06-07 20:10:20 +10:00
samuelctabor
f6b3c00b19 AP_Soaring: Fix initialisers in SoaringController. In-line method to get altitude in Variometer. 2017-06-07 20:10:11 +10:00
samuelctabor
4cbff71689 AP_Soaring: Separate the vario functionality into a seperate class from the soaring/thermalling functionality. 2017-06-07 20:10:03 +10:00
Andrew Tridgell
c9e140a946 AP_Terrain: removed unused variable 2017-06-07 19:59:14 +10:00
Michael du Breuil
3e2b5269a6 AP_Terrain: fix Coverity issue 91367
Also converts to using the get_relative_position_D_home() functions rather then attempting to derive home itself
2017-06-07 19:58:45 +10:00
Andrew Tridgell
6a01494d4a AP_HAL: fixed setting of HAL_MINIMIZE_FEATURES for FMUv3 2017-06-07 17:39:45 +10:00
Andrew Tridgell
d946d5da6f AP_Compass: enable AK09916 inside a ICM20948
the ICM20948 has an AK09916 which can be accessed via I2C bypass
2017-06-07 17:39:45 +10:00
Lucas De Marchi
eb70dbc6f5 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.
2017-06-06 18:42:17 -07:00
murata
ac8234cdf0 AP_Notify: Change to the value of boolean. 2017-06-07 08:06:44 +09:00
Randy Mackay
33ef3bd51d AP_Proximity: MAV driver gets distance validity check 2017-06-06 20:41:54 +09:00
Randy Mackay
1409f0ca7e DataFlash: rename CURR/CUR2 to BAT/BAT2 2017-06-06 14:57:04 +09:00
Randy Mackay
26845cc66a DataFlash: add resting voltage and resistance to current logging
also log cell voltages in separate message
2017-06-06 14:57:04 +09:00
Leonard Hall
9e86732edc AP_Motors: accept external battery resistance estimate 2017-06-06 14:57:04 +09:00
Randy Mackay
7a2d8fd5fd AP_BattMonitor: add has_cell_voltages method 2017-06-06 14:57:04 +09:00
Randy Mackay
6d8dc0fccf AP_BattMonitor: replace int with uint8_t
non-functional change
2017-06-06 14:57:04 +09:00
Leonard Hall
d5e898156f AP_BattMonitor: allow using resting voltage for failsafe 2017-06-06 14:57:04 +09:00
Leonard Hall
8709fe58ec AP_BattMonitor: resistance learning 2017-06-06 14:57:04 +09:00
Randy Mackay
f64777849f AP_BattMonitor: rename VOLT_TIMER to LOW_TIMER 2017-06-06 14:57:04 +09:00
Randy Mackay
989677ddfd AP_BattMonitor: move has_current to backend 2017-06-06 14:57:04 +09:00
Matt
f02bfab7fe 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-06 12:59:03 +09:00
Matt
34d305083d 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-06 12:58:28 +09:00
Matt
6354ca7096 AP_AHRS: Set the new gps_fusion notify flag
Uses EKF filter state to set the new gps_fusion notify flag. This allows
the GCS and notify devices to specifically be notified if the GPS is or
is not usable.
2017-06-06 10:38:42 +09:00