khancyr
14e2fa5642
sim_vehicle.py : load Rover default params
...
related to https://github.com/ArduPilot/ardupilot/issues/4090
2016-05-13 08:53:53 +10:00
Andrew Tridgell
bd3a58a727
Copter: fixed drift mode
...
the throttle assistance gain also needs to be scaled by 1000x for new throttle range
2016-05-13 08:48:55 +10:00
Peter Barker
f33cdaa212
sim_vehicle.py: add --strace option
2016-05-13 08:43:08 +10:00
Gustavo Jose de Sousa
4529028c8a
waf: ardupilotwaf: ap_get_all_libraries: ignore non-directory files
...
Each library in ardupilot is a folder with the source in. That avoids build
failures when there are files in libraries/. That fixes #4099 ("waf doesn't
seem to like TAGS files") and #4093 ("sim_vehicle.py /w waf /w eclipse project
broken on Cygwin").
That problem can be reproduced by just creating a file in libraries/ and trying
to build with waf.
There should be a better way to confirm a path is an ardupilot library. That
can be done later.
2016-05-12 13:47:44 -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
75d76ac3bd
Copter: fixed scaling of old heli parms
2016-05-12 17:34:36 +10:00
Andrew Tridgell
cf08c46f30
AC_PID: fixed default leak min for heli
2016-05-12 17:34:23 +10:00
Lucas De Marchi
b012d5bb7b
sim_vehicle.py: fix error to find binary
...
When trying to execute sim_vehicle.py this is the current output:
Warning: Could not find '../Tools/autotest/../../ArduCopter/../build/sitl/bin/arducopter-quad',
starting '/bin/bash' instead. Please check your profile settings.
Fix the path to the binary and use absolute paths to ease the debug.
2016-05-12 00:34:02 -03:00
Lucas De Marchi
ad8cedc452
sim_vehicle.py: remove unused AUTOTEST variable
2016-05-12 00:31:37 -03:00
Lucas De Marchi
e772c70536
sim_vehicle.py: use helper function to execute blocking command
2016-05-12 00:31:07 -03:00
Lucas De Marchi
1ef9eb637f
sim_vehicle.py: configure project only once
2016-05-11 23:44:24 -03:00
Lucas De Marchi
7a548e45f9
sim_vehicle.py: default to -j1 if running in compat mode
2016-05-11 23:34:49 -03:00
Pierre Kancir
03e565ee47
sim_vehicle.py : change default number of jobs
...
By default waf use the max num of proc available. So let it set jobs by
itself. On contrary, with make only use one job by default.
2016-05-11 22:55:30 -03: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
Francisco Ferreira
efc3f5058b
ci: simplify build script
2016-05-11 22:48:03 -03:00
Michael du Breuil
7142bacfaa
Plane: improve user friendliness of throttle fs msg
2016-05-11 09:00:55 -07:00
khancyr
bb648280ae
sim_vehicle.py: correct APMrover2 typo
2016-05-11 09:43:06 +02:00
Peter Barker
b7d1e047aa
sim_vehicle.py: correct binary to use for --debug
2016-05-11 16:37:34 +10:00
Andrew Tridgell
12e0012b16
Plane: allow for NAV_LOITER_UNLIM and NAV_LOITER_TIME in quadplane
2016-05-11 15:57:41 +10:00
Andrew Tridgell
3fc43b94f9
Plane: separate out auto and guided VTOL states
...
this prevents a switch to AUTO from using VTOL mode incorrectly
2016-05-11 15:14:43 +10: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
Andrew Tridgell
bcc64e0b4a
Plane: fixed tiltrotor build failure
...
mixup with merge of RC_Channel changes
2016-05-11 09:25:43 +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
Staroselskii Georgii
2e5cfc2849
AP_Compass: added external compass autodetection on Navio
2016-05-10 17:24:43 -03:00
Staroselskii Georgii
62f2695e83
AP_Compass: added several compasses' autodetection on Navio 2
2016-05-10 17:24:43 -03:00
Staroselskii Georgii
8be5ef1642
AP_HAL: added possibility to use several compassed on Navio 2
2016-05-10 17:24:43 -03:00
Staroselskii Georgii
71736a0ecc
AP_Compass: enable LSM9DS1 magnetometer for boards without default one
2016-05-10 17:24:43 -03:00
Staroselskii Georgii
f7846403e1
AP_HAL_Linux: enabled SPI-driven LSM9DS1 for Navio 2
2016-05-10 17:24:43 -03:00
Staroselskii Georgii
b677f975e7
AP_Compass: added LSM9DS1 magnetometer support
2016-05-10 17:24:43 -03:00
Andrew Tridgell
691d4b6ca7
Plane: added local reached_loiter_target()
...
this distinguishes between VTOL and fixed wing loiter targets
2016-05-11 05:55:26 +10:00
Andrew Tridgell
52ea443d65
Plane: added Q_THR_MIN
2016-05-11 05:55:26 +10:00
Andrew Tridgell
45609bb568
autotest: don't use --sitl if using flightaxis
...
we want rc override if using flightaxis
2016-05-11 05:55:25 +10:00
Andrew Tridgell
a61d608915
Plane: fixed numerical error if starting VTOL landing at destination
2016-05-11 05:55:25 +10:00
Andrew Tridgell
357ed1f4b9
Plane: enable weathervaning in GUIDED and TAKEOFF quadplane modes
2016-05-11 05:55:25 +10:00
Andrew Tridgell
6b358a5618
Plane: added Q_GUIDED_MODE parameter
...
this allows you to do hybrid VTOL and fixed wing guided mode
2016-05-11 05:55:25 +10:00
Andrew Tridgell
3bd5b42c69
Plane: refactor quadplane land controller as general VTOL position controller
2016-05-11 05:55:25 +10:00
Andrew Tridgell
6fdaaa7d98
Plane: new tilt compensation method
2016-05-11 05:55:25 +10:00
Andrew Tridgell
401b8d4fa6
autotest: use channel 13 for firefly tilt
2016-05-11 05:55:25 +10:00