Leonard Hall
34055944cd
AC_PosControl: fix relax_alt_hold_controllers
9 years ago
Randy Mackay
24044e5611
AC_AttControl: get_throttle_avg_max always returns value in 0 to 1 range
...
throttle_avg_max is the total average throttle level (expressed as a number from 0 to 1) that the motors can safely be raised to in order to maintain attitude control. This level can be higher than the pilot's or autopilot provided throttle level.
Previously passing in a negative throttle_in could result in a negative throttle_avg_max being returned.
9 years ago
Leonard Hall
ac04fcd836
AC_AttControl: fix set_yaw_target_to_current_heading
9 years ago
Leonard Hall
011bc0a350
AC_AttControl: add reset_rate_controller_I_terms()
9 years ago
Tom Pittenger
e63e7a5336
AP_NavEKF: comment that param "Enable" index is moved to top
9 years ago
Tom Pittenger
9b33280795
APM_OBC: set param "Enable" to be FLAG_ENABLE and move to top
9 years ago
Tom Pittenger
28648665b9
AP_Terrain: set param "Enable" to be FLAG_ENABLE
9 years ago
Tom Pittenger
ebe829614d
AP_Parachute: set param "Enable" to be FLAG_ENABLE
9 years ago
Tom Pittenger
b1ef848de6
AP_EPM: set param "Enable" to be FLAG_ENABLE
9 years ago
Tom Pittenger
0d14941eea
AP_Avoidance: set param "Enable" to be FLAG_ENABLE
9 years ago
Tom Pittenger
c07b85f9bb
AP_Airspeed: set param "Enable" to be FLAG_ENABLE
9 years ago
Tom Pittenger
dd5ed7e2e0
AC_Sprayer: set param "Enable" to be FLAG_ENABLE
9 years ago
Tom Pittenger
ccb0151816
AC_PrecLand: set param "Enable" to be FLAG_ENABLE
9 years ago
Tom Pittenger
5e811b8463
AC_Fence: set param "Enable" to be FLAG_ENABLE
9 years ago
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.
9 years ago
AndersonRayner
bf7ab052c1
AP_Vehicle: Removed unused airspeed_min and airspeed_max as now part of AP_Airspeed.
9 years ago
AndersonRayner
09d53eaeca
AP_TECS: Convert references to AP_Airspeed.
9 years ago
AndersonRayner
cc5a2417a6
APM_Control: Convert references to AP_Airspeed.
9 years ago
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
9 years ago
Andrew Tridgell
66c4995c9d
AP_Motors: added get_desired_spool_state()
9 years ago
murata
b6c27b58a8
AC_Fence: magic number 4 changed to size of uint32_t
9 years ago
Pavel Kirienko
9b786559d4
Fixed missing definition error UAVCAN_IOCS_HARDPOINT_SET
9 years ago
Pavel Kirienko
fccdcf50c1
EPM: fixed build
9 years ago
Pavel Kirienko
8af6af004d
EPM: fixed parameter comments
9 years ago
Pavel Kirienko
accf118e38
UAVCAN hardpoint control
9 years ago
Murilo Belluzzo
077e03678f
Global: Adapt Stream class to be used with Ringbuffer
9 years ago
Murilo Belluzzo
b856d26087
RingBuffer: ::set_size now returns true or false
9 years ago
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.
9 years ago
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.
9 years ago
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
9 years ago
Murilo Belluzzo
36bdd7f1f1
AP_InertialSensor: MPU6000: Add missing read() check
9 years ago
Lucas De Marchi
0d4caa3ccc
AP_Math: remove declaration of not implemented functions
9 years ago
Murilo Belluzzo
70942472d3
AP_Math: Matrix: Change deallocator to match allocator used
9 years ago
Murilo Belluzzo
e17fdb2aa9
DataFlash: Avoid null pointer dereference
...
Confirms that the loop successfully found a log structure before using it.
Should fix CID 126742
9 years ago
Holger Steinhaus
cc4fafc3e4
AP_GPS_PX4: fixed GPS epoch calculations
9 years ago
Tom Pittenger
282817eeb9
AP_ADSB: revert default enable = 0
9 years ago
Tom Pittenger
b5ec37b9d8
AP_ADSB: change adsb.enable param to be a flag
9 years ago
Tom Pittenger
2be32e9daa
AP_ADSB: remove all threat logic in adsb lib in favor of avoidance lib
9 years ago
Tom Pittenger
b2b63b4d80
AP_ADSB: change param ADSB_ENABLE default from 0 to 1
9 years ago
Tom Pittenger
89271c29ab
AP_ADSB: move variable into struct like the rest
9 years ago
Tom Pittenger
f7c2df8e91
AP_ADSB: sanity check data via valid_flags before forwarding to avoidance lib
9 years ago
Tom Pittenger
5c0b5f5cd1
AP_ADSB: reject packets that are invalid or already stale
9 years ago
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
9 years ago
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)
9 years ago
Peter Barker
2844190e5b
AP_RangeFinder: correct DisplayName comments
9 years ago
Peter Barker
1bb73383ec
AP_RangeFinder: group _ADDR with other first-rangefinder params
9 years ago
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
9 years ago
Randy Mackay
d5c18dc987
AC_AttControl: remove unused 100hz definition
9 years ago
Randy Mackay
2dc111ff39
Copter: reduce WPNAV_LOIT_MINA parameter description range
9 years ago
Randy Mackay
7d0cac15fb
AP_ICEngine: add casting to avoid compiler warnings
9 years ago