Ricardo de Almeida Gonzaga
64d14356b9
AP_NavEKF2: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
2f88e32657
AP_HAL_FLYMAPLE: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
2236640f66
AP_HAL_Linux: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
267a74ebb2
AP_NavEKF: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
4047fb63fc
AP_GPS: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
481e3a2af6
AP_Math: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
00b1915034
AP_HAL_Empty: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
892cc2ea6f
AP_HAL_PX4: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
1efa4a4115
doc: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
2bf9aa94ad
AP_AHRS: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
2802775e7d
AP_Motors: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
dfe38b61de
AP_Mission: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
91e9dd10ba
AP_HAL_SITL: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
eb418f54ee
AP_HAL: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
aa4b66509f
AP_AccelCal: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
fcbed13533
AP_Mount: Fix typos
2016-05-13 19:20:06 -03:00
Ricardo de Almeida Gonzaga
af13e2cca4
AP_Declination: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
e6564c2efa
AP_BoardConfig: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
2e58653983
AP_Compass: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
5237c86bca
AP_BattMonitor: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
d5a2c57c5e
AP_InertialSensor: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
08a022fa6a
AP_Frsky_Telem: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
8d6cc587c5
APM_Control: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
3033c53834
AC_WPNav: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
a8889e5765
AP_Common: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
f6ad89103c
AP_Arming: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
3f92a64b99
GCS_MAVLink: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
e31a37e7a8
AP_Notify: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
287eb69502
PID: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
dc7acdf03f
DataFlash: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
2ee6a85e67
AP_RangeFinder: Fix typos
2016-05-13 19:20:05 -03:00
Ricardo de Almeida Gonzaga
099fc69032
RC_Channel: Fix typos
2016-05-13 19:20:05 -03:00
Lucas De Marchi
388a6683ad
AP_OpticalFlow: fix optical flow initialization
...
This fixes the initialization for Linux boards using the PX4Flow module.
The problem is that after the conversion to use I2CDevice we now need to
use I2CDeviceManager, which is statically constructed after the vehicle
object.
So, if we try to call hal.i2c_mgr->get_device(), it will call the
get_device() method before the constructor is called and receive a
SIGSEGV:
Program received signal SIGSEGV, Segmentation fault.
0x000b06c0 in OpticalFlow::OpticalFlow (this=0x140914 <copter+4980>, ahrs=...)
at ../../libraries/AP_OpticalFlow/OpticalFlow.cpp:54
54 ../../libraries/AP_OpticalFlow/OpticalFlow.cpp: No such file or directory.
2016-05-13 11:22:12 -03:00
Lucas De Marchi
37f6b51746
AP_HAL_Linux: Scheduler: set stack sizes to 256k
...
Running the vehicles we check the stack size doesn't grow too much by
enabling the DEBUG_STACK in the scheduler. Even on 64bit boards the
stack is consistent around 4k. Just to be a little conservative, let it
be a little bit more that that: 256kB.
Since we have RT prio and we call mlock(), the memory for the stack of
each thread is locked in memory. This means we are effectively taking
that much memory. The default stack size varies per distro, but it's
common to have 8MB for 64 bit boards and 4MB for 32 bit boards. Here is
the output of ps -L -o 'comm,rtprio,rss $(pidof arducopter-quad)', showing the
RSS of arducopter-quad before and after this change:
Before:
COMMAND RTPRIO RSS
arducopter-quad 12 46960
sched-timer 15 46960
sched-uart 14 46960
sched-rcin 13 46960
sched-tonealarm 11 46960
sched-io 10 46960
After:
COMMAND RTPRIO RSS
arducopter-quad 12 7320
sched-timer 15 7320
sched-uart 14 7320
sched-rcin 13 7320
sched-tonealarm 11 7320
sched-io 10 7320
2016-05-12 13:35:23 -03:00
Lucas De Marchi
b2d4da4b0a
AP_HAL_Linux: Thread: allow to set stack size
...
This allows the code that is creating the thread to set the size of the
stack.
2016-05-12 13:35:23 -03:00
Lucas De Marchi
d970451331
AP_HAL_Linux: Scheduler: debug stack usage
2016-05-12 13:35:23 -03:00
Lucas De Marchi
f5f4aa7c21
AP_HAL_Linux: Thread: allow to debug stack usage
2016-05-12 13:35:23 -03:00
proficnc
20a569a4d5
AP_Mount: block forwarding of MAVlink by bitmask
2016-05-12 17:44:09 +10:00
proficnc
c8b3c527f9
GCS_MAVLink: add route mask for blocking MAVlink forwading
2016-05-12 17:44:06 +10:00
Andrew Tridgell
9bf0ada875
AC_AttitudeControl: removed use of AFF for tail control in heli
2016-05-12 17:37:22 +10:00
Andrew Tridgell
a6404cf1ea
AC_PID: removed AFF from heli PID
...
this is not used any more. Discussed with Rob on dev call
2016-05-12 17:37:01 +10:00
Andrew Tridgell
cf08c46f30
AC_PID: fixed default leak min for heli
2016-05-12 17:34:23 +10:00
Lucas De Marchi
aa974399d0
AP_Math: use inline wrappers for constrain_* functions
...
This avoids some warnings about "constrain_float defined but not used"
in some compilers.
2016-05-11 22:51:19 -03:00
Vinicius Juvinski
3bae8373e6
AP_Notify: play vehicle lost tone
2016-05-11 22:49:52 -03:00
Vinicius Juvinski
c1dd3cb921
AP_Notify: add support for for Buzzer on BBBMini
...
Use GPIO P8_31 for buzzer in BBBMini
2016-05-11 22:49:52 -03:00
Peter Barker
7510e4d0a7
SITL: setsid() when starting JSBSim so Ctrl-C doesn't kill it in GDB
2016-05-11 14:10:48 +10:00
Andrew Tridgell
eeef28be5e
AP_HAL_PX4: fixed hexacopter on Pixracer
...
the _servo_count was 4 as we didn't re-fetch the count after applying
changes in AP_BoardConfig from BRD_PWM_COUNT
2016-05-11 13:01:15 +10:00
Andrew Tridgell
8a7627474f
Revert "AP_HAL_PX4: use new I2CDevice interface"
...
This reverts commit f767918e0e
.
These commits broke startup on PX4
2016-05-11 12:19:00 +10:00
Andrew Tridgell
8c06e6cddc
Revert "AP_HAL_PX4: embed PX4_I2C object into I2CDevice"
...
This reverts commit 54fd3702c3
.
These commits broke startup on PX4
2016-05-11 12:18:45 +10:00
Staroselskii Georgii
a2ae662b3e
AP_Compass: add an extra rotation for internal LSM9DS1 on Navio2
...
In order not to force users to set rotation themselves, we need this
hack to make an extra rotation needed for a second compass.
2016-05-10 17:24:43 -03:00