Andrew Tridgell
a5462fec0b
AP_Baro: allow selection of primary barometer and add 3rd baro
...
this is useful for external I2C barometers on a PH2
2015-09-14 14:27:41 +10:00
Andrew Tridgell
61441ab35d
HAL_Linux: fixed apm2 build
2015-09-14 14:22:16 +10:00
Andrew Tridgell
bf001f19ff
HAL_Linux: don't panic on runtime failures
2015-09-14 14:22:16 +10:00
Andrew Tridgell
582318448f
AP_HAL: make new GPIO functions optional
...
not available on all boards
2015-09-14 14:22:16 +10:00
Andrew Tridgell
e0db1ad93e
AP_Notify: added support for raspilot LED
2015-09-14 14:22:16 +10:00
raspilot
9f91eb020e
AP_HAL_Linux: new files for raspilot
2015-09-14 14:22:16 +10:00
raspilot
30a2fe0857
AP_HAL_Linux: added scheduler hooks for raspilot
2015-09-14 14:22:16 +10:00
raspilot
25cddbcbaa
AP_HAL_Linux: added SPI support for raspilot
2015-09-14 14:22:16 +10:00
raspilot
7d329205ec
AP_HAL_Linux: added tonealarm support for raspilot
2015-09-14 14:22:16 +10:00
raspilot
a6736d8e61
AP_HAL_Linux: fixed ublox debug message
2015-09-14 14:22:16 +10:00
raspilot
444081d38d
AP_HAL_Linux: added support for raspilot objects
2015-09-14 14:22:16 +10:00
raspilot
f057fe3d02
AP_HAL_Linux: added support for raspilot GPIO
2015-09-14 14:22:15 +10:00
raspilot
9a73df1bea
AP_HAL_Linux: added support for raspilot RCInput
2015-09-14 14:22:15 +10:00
raspilot
1421cf600a
AP_InertialSensor: added support for raspilot
2015-09-14 14:22:15 +10:00
Lucas De Marchi
309e75f9ac
AP_Compass: LSM303D: use c++11 initializer to avoid Wreorder
2015-09-14 14:22:15 +10:00
Lucas De Marchi
3a017c8702
AP_Compass: LSM303D: rename members to follow convention
...
Make the members have similar names as HMC5843 driver and prepend
underscore on private fields.
2015-09-14 14:22:15 +10:00
raspilot
19b4f5559a
AP_Compass: added LSM303D driver
2015-09-14 14:22:15 +10:00
raspilot
6df83f46c5
AP_HAL: new GPIO APIs
2015-09-14 14:22:15 +10:00
raspilot
dcc7cf2739
AP_HAL: raspilot board type
2015-09-14 14:22:15 +10:00
Andrew Tridgell
76aa1a9704
SITL: ensure zero rotor speed with ignition off in gas heli
2015-09-14 12:46:04 +10:00
Andrew Tridgell
6fbe88ba3a
AP_GPS: improved fake ublox to give enough for EKF health
2015-09-14 11:36:15 +10:00
Andrew Tridgell
e87139eb32
AP_GPS: fixed a build warning
2015-09-14 11:36:10 +10:00
Andrew Tridgell
43ac3f86c5
DataFlash: added RNFD logging and 3 baros
2015-09-13 11:29:59 +10:00
Andrew Tridgell
8538aa9840
AP_Rangefinder: allow for up to 4 rangefinders
2015-09-13 11:29:56 +10:00
Daniel Nugent
58b7bf1588
AC_PrecLand: add companion computer implementation
2015-09-11 20:56:08 +09:00
Daniel Nugent
2f92876865
AC_PrecLand: remove const from get_angle_to_target
2015-09-11 20:56:07 +09:00
Daniel Nugent
21ac12f1c3
AC_Precland: bug fix to update ef angles only with new readings
2015-09-11 20:56:05 +09:00
Daniel Nugent
db8f28f2aa
GCS_MAVLink: version update after generating LANDING_TARGET
2015-09-11 20:56:04 +09:00
Daniel Nugent
3aa0063f31
GCS_MAVLink: generate after updating LANDING_TARGET msg
2015-09-11 20:56:03 +09:00
Daniel Nugent
eba8dcffde
GCS_MAVLink: update LANDING_TARGET from upstream mavlink
2015-09-11 20:56:02 +09:00
Andrew Tridgell
d07d2f3a46
AP_GPS: removed UBX3 message
...
replaced by GPA and GPA2 messages
2015-09-09 15:01:45 +10:00
Andrew Tridgell
c5cd310818
DataFlash: added GPA and GPA2 messages for GPS accuracy
...
this reverts the GPS format to the old format, thus fixing log
analysers
2015-09-09 14:53:11 +10:00
Andrew Tridgell
c59bdc12df
AP_Compass: fix the milligauss handling
...
the previous approach assumed a 1:1 mapping between compass backends
and compass instances, which isn't true on PX4.
It also only setup milligauss offsets on a set_and_save call, which is
not the only way offsets change
this adds a milligauss_ratio per instance, which is considerably
simpler
2015-09-09 14:53:11 +10:00
Andrew Tridgell
3699932417
AP_Compass: fixed SITL compass
2015-09-09 14:53:11 +10:00
Randy Mackay
f1322252ae
GPS: fix GNSS_MODE param descriptions
...
Thanks to Michael DuBreuil for noticing the problem and providing the correction
2015-09-09 13:40:32 +09:00
Buzz
684dfaf26f
DataFlash: fix OSX build
2015-09-09 13:09:01 +09:00
Michael Oborne
88cf710f94
AP_GPS_SBF: add accuracy estimates
2015-09-09 12:28:25 +10:00
Peter Barker
60010e794e
DataFlash: ensure 10% free space when initialising logging
2015-09-09 12:22:35 +10:00
Angus Peart
95c66a794e
AP_Notify: sync oreoleds before a reboot
2015-09-09 10:39:54 +09:00
Angus Peart
a887c1d1f2
AP_Notify: fix oreoled race causing startup flicker
2015-09-09 10:39:53 +09:00
Angus Peart
d48f1b0ccf
AP_Notify: oreoled - remove dangerous send_bytes
2015-09-09 10:39:52 +09:00
Angus Peart
662a3aa4cb
AP_Notify: oreoled - always use full brightness
2015-09-09 10:39:51 +09:00
Jonathan Challinger
d205de2d7e
AP_Notify: use new macros for white/red pattern
2015-09-09 10:39:51 +09:00
Randy Mackay
872e6769b0
Notify: change firmware_update event to flag
2015-09-09 10:39:50 +09:00
Jace A Mogill
068cdfe6a3
Notify: workaround for OREOLED problems
2015-09-09 10:39:49 +09:00
Michael du Breuil
a88e10d3a0
DataFlash: Log vDOP with GPS messages.
...
Due to the description string getting to long HDop was renamed as EPH with VDop as EPV (Which is the same terimnology used to describe the MAVLink side). Status was shortened to stat as well.
2015-09-09 11:38:12 +10:00
Michael du Breuil
9f02834f6d
AP_GPS: Broadcast vDOP data over mavlink
2015-09-09 11:38:12 +10:00
Michael du Breuil
0e3a188f6f
AP_GPS: Read the vdop information from a ublox GPS
2015-09-09 11:38:12 +10:00
Peter Barker
f9a1102e96
DataFlash: correct compilation for new DataFlash signature
2015-09-09 10:58:27 +10:00
Peter Barker
a2f1bf581a
DataFlash: fix test for SITL and linux
2015-09-09 10:58:27 +10:00
unknown
b1ce6136c4
DataFlash_test:make it works with pixhawk2
2015-09-09 10:58:26 +10:00
Staroselskii Georgii
bd7c313bee
AP_Compass: fixed Compass::get_raw_field()
...
It seems as if it were a copy-paste error. A statis analyzer would
definetely be angry.
2015-09-09 10:38:17 +10:00
Staroselskii Georgii
375724b319
Arming: use milligauss as compass units
2015-09-09 10:38:16 +10:00
Staroselskii Georgii
4b948f5bb1
AP_AHRS: make DCM use milligauss
2015-09-09 10:38:16 +10:00
Staroselskii Georgii
b5b6d767bd
AP_NavEKF: make EKF use milligauss
2015-09-09 10:38:16 +10:00
Staroselskii Georgii
e93ff44a97
AP_Compass: make a transition to milligauss in Compass library
2015-09-09 10:38:16 +10:00
Staroselskii Georgii
693613aa0f
AP_Compass: convert AK8963 measurements to uT
...
AK8963 is configured in 16-bit ADC mode which implies sensitivity of 0.15 uT/LSb. Knowing this fact we can convert the measurements to the proper units. The change will make users recalibrate their compasses.
2015-09-09 10:38:16 +10:00
Staroselskii Georgii
c207d8c6a8
AP_Compass: add milligauss counterparts to get_field() and get_offsets()
...
From now on there's a pair get_field_milligauss() and
get_offsets_milligauss() that can make the transition to the common
units across all compasses easier.
2015-09-09 10:38:16 +10:00
Víctor Mayoral Vilches
6d762f62b3
AP_InertialSensor: ERLEBOARD legacy support
...
This config referred to the legacy Erle-Board
https://erlerobotics.com/blog/product/erle-board/
The configuration is preserved to support the
existing boards.
2015-09-09 10:31:55 +10:00
Víctor Mayoral Vilches
728921f7c5
AP_HAL_Linux: ERLEBOARD legacy support
...
This config referred to the legacy Erle-Board
https://erlerobotics.com/blog/product/erle-board/
The configuration is preserved to support the
existing boards.
2015-09-09 10:31:55 +10:00
Víctor Mayoral Vilches
b87fd58214
AP_HAL: ERLEBOARD legacy support
...
This config referred to the legacy Erle-Board
https://erlerobotics.com/blog/product/erle-board/
The configuration is preserved to support the
existing boards.
2015-09-09 10:31:55 +10:00
Grant Morphett
122e88dbed
RC_Channel: remove the unused test function get_failsafe
2015-09-09 10:28:02 +10:00
Valmantas Palikša
d4daf19151
AP_Math: Move simple math function implementations to header for better
...
compile time optimization
Functions like sq() are better moved to the header file as inline.
Compiler can then optimize these out when used in code, this saves cpu
cycles with stack push, pop during function calls.
2015-09-09 09:57:51 +10:00
Tom Pittenger
cb20325593
AP_Mission: added flight stage FLIGHT_LAND_ABORT
...
- add get_prev_nav_cmd_with_wp_index(). This is different than get_prev_nav_cmd_index() in that it only stores the index if there is a valid lat/lng (+1 squashed commits)
- added mission item command to NAV_LAND which is the abort takeoff altitude. If 0 then use last takeoff if available, else use 50m
2015-09-09 09:04:24 +10:00
Tom Pittenger
46a83c7ae9
AP_TECS: added flight stage FLIGHT_LAND_ABORT
...
- do what TAKEOFF does in tecs, push the throttle up
2015-09-09 09:04:24 +10:00
Tom Pittenger
0961e1d907
AP_SpdHgtControl: added flight stage FLIGHT_LAND_ABORT
2015-09-09 09:04:24 +10:00
Fredrik Hedberg
d9a4b6b089
AP_HAL_Linux: Allow PCA9685 to be used on non-default I2C addresses.
2015-09-09 08:43:22 +10:00
Fredrik Hedberg
9d9e6d0b34
AP_HAL_Linux: Only use enable pin for PCA9685 if we need to.
2015-09-09 08:43:22 +10:00
Fredrik Hedberg
21b9f96ce3
AP_HAL_Linux: Enable use of all 16 channels for non-Navio PCA9685.
2015-09-09 08:43:22 +10:00
Tom Pittenger
4771d19073
AP_Math: added locations_are_same(loc1,loc2) helper
...
returns true if lat and lng are the same, ignores alt and options
2015-09-08 17:05:54 +10:00
Tom Pittenger
1026e7df45
AP_Mission: updated comment
...
altitude and lat/lng are all used
2015-09-08 17:05:54 +10:00
Andrew Tridgell
6afb3895c0
AP_RangeFinder: added doc strings for new rangefinder types
2015-09-08 16:46:52 +10:00
Andrew Tridgell
cbd43ee6ea
HAL_PX4: added hal.i2c support on PX4 boards
...
this allows I2C based devices to use in-tree drivers
2015-09-08 16:46:52 +10:00
Andrew Tridgell
80c85a2c3f
AP_SerialManager: added enum for serial lidar
2015-09-08 16:46:52 +10:00
Andrew Tridgell
7d30ce2e36
AP_RangeFinder: added lightware serial rangefinder
2015-09-08 16:46:52 +10:00
Andrew Tridgell
0ca534bfab
AP_NavEKF: only call calcGpsGoodToAlign if we need to
...
avoid calling it once we have an origin. This avoids some calculations
and string operations
2015-09-08 16:07:33 +10:00
Andrew Tridgell
7e13edd4c7
AP_Arming: use prearm_failure_reason()
2015-09-08 16:07:33 +10:00
Andrew Tridgell
c10ce3ffbd
AP_NavEKF: added prearm_failure_reason()
2015-09-08 16:07:33 +10:00
Andrew Tridgell
c18c6d894e
AP_AHRS: added prearm_failure_reason()
2015-09-08 15:50:22 +10:00
Andrew Tridgell
d7a7741d15
APM_OBC: added severities to send_statustext_all
2015-09-08 14:29:45 +10:00
Andrew Tridgell
b65739a8cc
AP_Arming: added severities to send_statustext_all
2015-09-08 14:29:33 +10:00
Andrew Tridgell
bc4d37c91e
GCS_MAVLink: added severity to send_statustext_all()
2015-09-08 14:29:22 +10:00
Andrew Tridgell
c48bef1552
AP_Arming: removed the need for the GCS print function
2015-09-08 13:54:25 +10:00
Andrew Tridgell
f3e8819d1e
GCS_MAVLink: make send_statustext_all() take a format string
...
this allows for formatted messages to all groundstations in libraries
2015-09-08 13:53:58 +10:00
Grant Morphett
bec21a51a4
AP_RangeFinder: Just fixing the parameter name in the description
2015-09-07 17:48:37 +09:00
Leonard Hall
c8872e082d
AC_AttControl: rename set_throttle_out parameter
...
No functional change
2015-09-07 15:10:15 +09:00
Leonard Hall
5ab2a19173
AC_WPNav: loiter limits lean angle for alt loss
2015-09-07 15:10:11 +09:00
Leonard Hall
cf5db31053
AC_PosControl: allow limiting lean angle to avoid alt loss
2015-09-07 15:10:10 +09:00
Leonard Hall
29ff5035b4
AC_AttControl: limit lean angle from throttle
2015-09-07 15:10:09 +09:00
Randy Mackay
1024790633
MotorsMulti: add throttle_max accessor
2015-09-07 15:10:02 +09:00
Leonard Hall
b58cc7ea8d
AC_PosControl: move accel constraint to accel_to_lean_angles
2015-09-07 14:51:43 +09:00
Michael Oborne
993904f01c
AP_GPS_SBF: add init string and increase union size
2015-09-07 12:11:47 +10:00
Julien BERAUD
a057a8a009
AP_HAL_Linux: Add Support for RCInput_UDP
...
very simple protocol to receive RC cmds via UDP
Add support for it on the bebop
2015-09-07 12:10:08 +10:00
Grant Morphett
3b1844d5c9
AP_Arming: Moved the plane centric arming code into plane
...
Needed to move the plane centric arming code out of the AP_Arming
library and into the plane vehicle code.
2015-09-07 11:54:21 +10:00
Gustavo Jose de Sousa
305ec7b08a
AP_InertialSensor: MPU6000: publish sample rate
...
So that vibration and clipping may be calculated.
2015-09-07 11:14:43 +10:00
Gustavo Jose de Sousa
eb480e959c
AP_InertialSensor: MPU9250: publish sample rate
...
That enables the default vibration calculation.
2015-09-07 11:14:42 +10:00
Gustavo Jose de Sousa
a76eb9c15f
AP_InertialSensor: MPU9250: use macros for sample rate
...
Instead of hardcoded values.
2015-09-07 11:14:42 +10:00
Gustavo Jose de Sousa
a0b1337646
AP_InertialSensor: PX4: publish sample rate
...
By publishing the sample rate, the vibration and clipping are magically
calculated.
2015-09-07 11:14:42 +10:00
Gustavo Jose de Sousa
77a4f10d89
AP_InertialSensor: PX4: don't call calc_vibration_and_clipping()
...
That calculation will be unified.
2015-09-07 11:14:42 +10:00
Gustavo Jose de Sousa
6aa973dd47
AP_InertialSensor: Backend: calculate vibration and clipping on new raw sample
...
This is a good way of letting each implementation easily calculate vibration
and clipping: all they need to do is publish their sample rate and they don't
need to worry about the call for calculation.
2015-09-07 11:14:42 +10:00