Leonard Hall
fdcdcb0033
AC_PosControl: check Z-axis accel imax can always overpower hover throttle
...
This removes the possibility of the vehicle constantly climbing if the hover throttle becomes a very large value
9 years ago
Andrew Tridgell
aafd1512e4
HAL_PX4: limit IMU target temperature to 65
9 years ago
Andrew Tridgell
c0d21c5730
AP_Module: added gyro_bias to AHRS structure
9 years ago
Andrew Tridgell
334db0a1a5
AP_AHRS: added get_primary_accel_index() and get_primary_gyro_index()
9 years ago
Andrew Tridgell
902daff3a3
AP_Module: added FSYNC state to raw accel report
9 years ago
Andrew Tridgell
6f9530ebaa
AP_InertialSensor: added optional FSYNC external sync bit
...
used to synchronise with image sensor on Disco
9 years ago
Andrew Tridgell
c62fc336cb
AP_AHRS: use current EKF2 IMU core in gyro estimate
...
The EKF2 implementation uses one IMU per EKF2 core. When reporting the
gyro estimate, accel_ef estimate and gyro bias estimate we need to use
the values associated with the current IMU index being used by the
current EKF2 core. Otherwise we will have an inconsistency between the
gyro estimate and attitude estimate
This affects all multi-IMU systems using EKF2
9 years ago
Andrew Tridgell
dd812cfc0c
AP_NavEKF2: added getPrimaryCoreIMUIndex()
...
needed for correct AHRS gyro estimate
9 years ago
Andrew Tridgell
cfd7268bd5
GCS_MAVLink: check the signing key magic on load
...
or we end up with a bad key when MAVLink2 is first enabled
9 years ago
Andrew Tridgell
b9c4a948d1
AP_BoardConfig: fixed startup ordering change in canbus vs external mag
9 years ago
Gustavo Jose de Sousa
5c5ddc9d4a
AP_HAL: reformat AP_HAL_Boards.h
...
The definitions for each board haven't been reformatted here. They need a
little more thinking on how to format them in order to provide better
readability.
9 years ago
José Roberto de Souza
13287f61e3
AP_Compass: Make COMPASS_AERO probe BMM150
9 years ago
Gustavo Jose de Sousa
68fe536da3
AP_InertialSensor: use BMI160 for Intel Aero
9 years ago
Gustavo Jose de Sousa
025082b280
AP_HAL_Linux: add port to Intel Aero
...
Contributions from:
- Gustavo Jose de Sousa <gustavo.sousa@intel.com>
- José Roberto de Souza <jose.souza@intel.com>
- Lucas De Marchi <lucas.demarchi@intel.com>
- Patrick J.P <patrick.pereira@intel.com>
9 years ago
José Roberto de Souza
0b0be31a29
AP_HAL: add defines for Intel Aero
9 years ago
Gustavo Jose de Sousa
b6c0e11200
AP_InertialSensor: BMI160: convert it to use Device periodic callback
...
Some notes:
- The only place that made sense to use
suspend_timer_procs()/resume_timer_procs() calls were where we registered
the timer process. Now there's no need for that anymore. Remove those calls
from other place in the source too.
- There's no need to acquire the device lock now that we are running as a
periodic callback.
9 years ago
Gustavo Jose de Sousa
b259356703
AP_Compass: BMM150: convert it to use Device periodic callback
9 years ago
Lucas De Marchi
667fca60f5
AP_Compass: BMM150: reduce lock region
...
Use a semaphore to update the accumulated values instead of using the
timer semaphore.
9 years ago
Patrick J.P
c32dc3bc37
AP_HAL_Linux: Add AeroIO communication module
...
Signed-off-by: Patrick J.P <patrick.pereira@intel.com>
9 years ago
Randy Mackay
4858afae6c
AP_Motors: param description update that MOT_SPIN_MIN should be higher than MOT_SPIN_ARM
9 years ago
Andrew Tridgell
bf1e0e1536
AP_AHRS: fixed EKF GPS arming check for fixed wing
...
when in a quadplane mode we set fly_forward to zero. We need to ensure
the GPS checks for EKF health are applied when doing arming checks, so
we use the checks always when disarmed
9 years ago
Andrew Tridgell
232347569f
AP_RPM: use RPM_SCALING in SITL
...
useful for testing low RPM warning in a GCS
9 years ago
Andrew Tridgell
acbeb29fbe
AP_Frsky_Telem: use const references where possible
...
save some stack space
9 years ago
Randy Mackay
44830be172
AC_AttControl: add parameter check of throttle mix
9 years ago
Randy Mackay
535158e0d8
AC_AttControl: move var_info declaration
...
No functional change
9 years ago
Randy Mackay
38b3d3ff3a
AP_GPS_MAV: initialise location while handling_msg
...
This reduces a covarity warning but it likely not really an issue because we always initialise newly allocated memory to zero anyway
9 years ago
murata
59796aaf9c
AP_OpticalFlow: The first value of the register to the value of the definition.
9 years ago
Ralf Ramsauer
71212942da
AP_HAL: AP_HAL_Linux: align I2CDevice::read_registers_multiple()
...
25c7e8b
changed the logic of transfer(). Align
I2CDevice::read_registers_multiple() in the same way.
Signed-off-by: Ralf Ramsauer <ralf.ramsauer@othr.de>
9 years ago
Randy Mackay
e7020b218a
AC_Fence: revert param Enable to be FLAG_ENABLE
...
This reverts commit 5e811b8463
.
9 years ago
Ralf Ramsauer
5b81920737
AP_HAL: AP_HAL_Linux: add comment to I2CDevice::transfer()
...
If I2CDevice::transfer() has to do nothing it returns false. This can be
misleading, as this might feel contradictory.
Let's spend a comment on that.
Signed-off-by: Ralf Ramsauer <ralf.ramsauer@othr.de>
9 years ago
Ralf Ramsauer
25c7e8bf60
AP_HAL: AP_HAL_Linux: perfect I2CDevice::transfer()
...
According to man 3 ioctl, ioctl returns other values than -1 on success.
So loop while ioctl returns -1.
Furthermore, there is no necessity to initialise r with -EINVAL,
Signed-off-by: Ralf Ramsauer <ralf.ramsauer@othr.de>
9 years ago
Matt
9eca21c26a
AP_Compass: Removed duplicate code
9 years ago
Lucas De Marchi
833f565f09
AP_HAL_Linux: prefix threads with ap
...
This makes it consistent with bus threads and easier to grep from a `ps`
call.
9 years ago
Lucas De Marchi
e1ab44f4a3
Global: remove get_fd() from Device API
...
This was there for compatibility with I2CDriver and SPIDriver. We don't
use them anymore so we can remove the compat method.
9 years ago
Lucas De Marchi
ead01855df
AP_HAL: remove default params for minlure
...
We are currently not using them.
9 years ago
Andrew Tridgell
e9e3a3f491
AP_Motors: added get_pwm_type()
9 years ago
Peter Barker
fd87a4f180
DataFlash: fix unused result warning
9 years ago
Andrew Tridgell
a4ca4dbd9e
AP_FrSky_Telem: use a constant string for firmware version
9 years ago
Andrew Tridgell
62388fc991
AP_FrSky_Telem: use constant strings in message queueing
9 years ago
Andrew Tridgell
183283ba07
AP_FrSky_Telem: make _msg non-static
...
there are no calls to this from outside the library. If we do add some
then we can change the API as needed
9 years ago
floaledm
2f54e67996
AP_FrSky_Telem: fixed sending last message chunk
...
Was sent only once, now sent 3 times (as planned)
9 years ago
Andrew Tridgell
185ef73684
AP_Frsky_Telem: fixed usage of sensor error bits
...
using these asyncronously via pointers is error prone as the updates
to these masks is not atomic relative to the IO callback in
AP_Frsky_Telem
9 years ago
Andrew Tridgell
f4d59d720a
AP_FrSky_Telem: removed use of pointer to control_mode
...
it is an enum, and it is invalid to take a pointer to an enum as a
uint8_t*
9 years ago
Andrew Tridgell
ab77fdfa02
AP_FrSky_Telem: removed dependency on inertialnav
...
the AP_InertialNav library is deprecated in favor of AP_AHRS. We
should not introduce a new dependency on it
9 years ago
floaledm
b71e0d73b9
AP_FrSky_Telem: added SPort passthrough protocol
9 years ago
floaledm
50eecf58a4
AP_SerialManager: added SPort passthrough protocol
9 years ago
floaledm
ec157bd4c2
AP_BattMonitor: Get pack_capacity_mah function
9 years ago
floaledm
a9b01b470c
AP_FrSky_Telem: cosmetic changes
9 years ago
floaledm
5066a5bc73
AP_SerialManager: syntax and minor lib rework
9 years ago
floaledm
de2a7013b4
AP_FrSky: simplified lib rework
9 years ago