Tom Pittenger
9b33280795
APM_OBC: set param "Enable" to be FLAG_ENABLE and move to top
2016-08-04 11:32:02 -07:00
Tom Pittenger
28648665b9
AP_Terrain: set param "Enable" to be FLAG_ENABLE
2016-08-04 11:31:37 -07:00
Tom Pittenger
ebe829614d
AP_Parachute: set param "Enable" to be FLAG_ENABLE
2016-08-04 11:31:21 -07:00
Tom Pittenger
b1ef848de6
AP_EPM: set param "Enable" to be FLAG_ENABLE
2016-08-04 11:30:50 -07:00
Tom Pittenger
0d14941eea
AP_Avoidance: set param "Enable" to be FLAG_ENABLE
2016-08-04 11:30:39 -07:00
Tom Pittenger
c07b85f9bb
AP_Airspeed: set param "Enable" to be FLAG_ENABLE
2016-08-04 11:30:22 -07:00
Tom Pittenger
dd5ed7e2e0
AC_Sprayer: set param "Enable" to be FLAG_ENABLE
2016-08-04 11:30:03 -07:00
Tom Pittenger
ccb0151816
AC_PrecLand: set param "Enable" to be FLAG_ENABLE
2016-08-04 11:29:45 -07:00
Tom Pittenger
5e811b8463
AC_Fence: set param "Enable" to be FLAG_ENABLE
2016-08-04 11:29:30 -07:00
Tom Pittenger
c090ba2257
Airspeed: store reference in libraries and populate it
...
- also had to move the initial definition in plane.h so it happened before the others.
2016-08-04 11:06:44 -07:00
AndersonRayner
bf7ab052c1
AP_Vehicle: Removed unused airspeed_min and airspeed_max as now part of AP_Airspeed.
2016-08-04 10:09:04 -07:00
AndersonRayner
09d53eaeca
AP_TECS: Convert references to AP_Airspeed.
2016-08-04 10:09:04 -07:00
AndersonRayner
cc5a2417a6
APM_Control: Convert references to AP_Airspeed.
2016-08-04 10:09:04 -07:00
AndersonRayner
5439257236
AP_Airspeed: Converted library to be stand-alone from APM:Plane.
...
Additional changes:
ARSPD_FBW_MIN and ARSPD_FBW_MAX renamed to ARSPD_MIN and ARSPD_MAX
ARSPD_MIN and ARSPD_MAX changed to floats
2016-08-04 10:09:04 -07:00
Andrew Tridgell
66c4995c9d
AP_Motors: added get_desired_spool_state()
2016-08-04 09:43:40 -07:00
murata
b6c27b58a8
AC_Fence: magic number 4 changed to size of uint32_t
2016-08-04 15:26:18 +09:00
Pavel Kirienko
9b786559d4
Fixed missing definition error UAVCAN_IOCS_HARDPOINT_SET
2016-08-04 09:16:02 +10:00
Pavel Kirienko
fccdcf50c1
EPM: fixed build
2016-08-04 09:16:02 +10:00
Pavel Kirienko
8af6af004d
EPM: fixed parameter comments
2016-08-04 09:16:02 +10:00
Pavel Kirienko
accf118e38
UAVCAN hardpoint control
2016-08-04 09:16:02 +10:00
Murilo Belluzzo
077e03678f
Global: Adapt Stream class to be used with Ringbuffer
2016-08-03 01:44:02 -03:00
Murilo Belluzzo
b856d26087
RingBuffer: ::set_size now returns true or false
2016-08-03 01:44:02 -03:00
Murilo Belluzzo
f7f203efa9
RingBuffer: Add ::clear() method to discard the buffer content
...
The same could be achieved with ::set_size(::get_size()), but was not
obvious and hurts code readability.
2016-08-03 01:44:02 -03:00
Murilo Belluzzo
75a1b102fb
RingBuffer: Handle zero sized better
...
Sometimes (like in DataFlash) the size of the ring buffer will be
determined in run time and the object can have size zero until proper
initialization. When this was the case, an underflow in ::get_size would
mess with the initializing algorithm.
Another issue was that the 'new' operator could fail what was not being
handled. Now, we only set the size member after we are sure 'new'
successfully allocated memory.
2016-08-03 01:44:02 -03:00
Murilo Belluzzo
fe48901db0
AP_ADC_ADS1115: Remove resource leak.
...
Constructor allocate '_samples' but there was no destructor to
deallocate it. Also, initializes '_gain' to silence CID 9144 although
'_gain' wasn't being used uninitialized because of ::init().
CID 91424
2016-08-03 00:24:55 -03:00
Murilo Belluzzo
36bdd7f1f1
AP_InertialSensor: MPU6000: Add missing read() check
2016-08-03 00:18:20 -03:00
Lucas De Marchi
0d4caa3ccc
AP_Math: remove declaration of not implemented functions
2016-08-03 00:16:35 -03:00
Murilo Belluzzo
70942472d3
AP_Math: Matrix: Change deallocator to match allocator used
2016-08-03 00:09:11 -03:00
Murilo Belluzzo
e17fdb2aa9
DataFlash: Avoid null pointer dereference
...
Confirms that the loop successfully found a log structure before using it.
Should fix CID 126742
2016-08-03 00:02:19 -03:00
Holger Steinhaus
cc4fafc3e4
AP_GPS_PX4: fixed GPS epoch calculations
2016-08-02 11:20:48 +10:00
Tom Pittenger
282817eeb9
AP_ADSB: revert default enable = 0
2016-08-01 17:56:04 -07:00
Tom Pittenger
b5ec37b9d8
AP_ADSB: change adsb.enable param to be a flag
2016-08-01 17:51:24 -07:00
Tom Pittenger
2be32e9daa
AP_ADSB: remove all threat logic in adsb lib in favor of avoidance lib
2016-08-01 15:27:40 -07:00
Tom Pittenger
b2b63b4d80
AP_ADSB: change param ADSB_ENABLE default from 0 to 1
2016-08-01 15:27:39 -07:00
Tom Pittenger
89271c29ab
AP_ADSB: move variable into struct like the rest
2016-08-01 15:27:38 -07:00
Tom Pittenger
f7c2df8e91
AP_ADSB: sanity check data via valid_flags before forwarding to avoidance lib
2016-08-01 12:47:18 -07:00
Tom Pittenger
5c0b5f5cd1
AP_ADSB: reject packets that are invalid or already stale
2016-08-01 12:44:20 -07:00
Tom Pittenger
b12edf6a71
AP_ADSB: fix bug where the update timeout wasn't being stored correctly
...
- causes immediate timeout so all samples were dropped
- now the timeout is current and respects the time-since-last-comms/packet so we can ignore stale packets
2016-08-01 12:43:47 -07:00
Tom Pittenger
e0bb77726e
AP_ADSB: do not service transceiver if it is not detected
...
- also allow forced detected (setting chan in header) for testing by not having it time out in that special case (timer = 0)
2016-08-01 09:06:05 -07:00
Peter Barker
2844190e5b
AP_RangeFinder: correct DisplayName comments
2016-08-01 09:55:25 -03:00
Peter Barker
1bb73383ec
AP_RangeFinder: group _ADDR with other first-rangefinder params
2016-08-01 09:55:24 -03:00
Peter Barker
d5ffc8a863
AP_RangeFinder: define 3_ADDR when we have three rangefinders
...
Without this patch this field would only be defined when 4 rangefinders
were specified
2016-08-01 09:55:24 -03:00
Randy Mackay
d5c18dc987
AC_AttControl: remove unused 100hz definition
2016-08-01 17:21:04 +09:00
Randy Mackay
2dc111ff39
Copter: reduce WPNAV_LOIT_MINA parameter description range
2016-08-01 17:09:20 +09:00
Randy Mackay
7d0cac15fb
AP_ICEngine: add casting to avoid compiler warnings
2016-08-01 09:41:32 +09:00
Lucas De Marchi
e217faacab
AP_Baro: MS56XX: cosmetic changes to members
...
- reorder and document members.
- remove tentative of vertical alignement
- like was done for accumulated values, move the calibration
values to a struct
2016-07-30 00:55:28 -03:00
Lucas De Marchi
f7b453359d
AP_Baro: MS56XX: convert to threaded bus
...
This converts MS56XX to use the thread started by SPI/I2C instead of
using the timer thread. This also fixes a possible starvation of the
main thread:
1) INS driver registers itself to be sampled on timer thread
2) MS56XX registers itself to be sampled on timer thread
3) Main thread waits for a sample from INS with
ins.wait_for_sample()
4) timer thread is waiting on update from MS56XX and consequently
the main thread is waiting on an I2C/SPI transfer
Besides this starvation there's another one due to reuse of the timer
lock in order to pump values from the timer thread to the main thread. A
call to the update() method when we have a sample available would need
to wait on any other driver holding the timer lock.
Now there's a lock just to pass the new values from the bus thread to
the main thread with a very tiny critical region, not waiting on any
bus transfers and/or syscalls.
2016-07-30 00:55:28 -03:00
Lucas De Marchi
052f30bc70
AP_HAL: remove macros to use MS5611 in the main thread
2016-07-30 00:55:28 -03:00
Lucas De Marchi
929348ff75
AP_Baro: MS5611: always use timer thread
...
Remove support to run MS5611 on main thread since we shouldn't be doing
I2C transactions there and we are moving to "thread per bus"
nonetheless.
2016-07-30 00:55:28 -03:00
Lucas De Marchi
7b7e73680f
AP_Math: add USEC_PER_MSEC
2016-07-30 00:55:28 -03:00