Daniel Agar
a25ca0c37d
param include px4_config.h for FLASH_BASED_PARAMS
...
- fixes #8585
2018-01-12 23:46:15 +01:00
Daniel Agar
7b1b255158
EKF2 set zero unused estimator_status fields
2018-01-12 23:19:46 +01:00
Beat Küng
f47d0c8f8c
load_mon: reduce FDS_LOW_WARNING_THRESHOLD to 3
...
This bound can be quite tight, because:
- The system still behaves well, even if all FD's are used (as opposed to
a stack overflow)
- The amount of used FD's is typically only increased one at a time
(e.g. adding new logged topics, adding a mavlink stream, ...)
- reducing CONFIG_NFILE_DESCRIPTORS to the minimum frees up a considerable
amount of RAM on systems that need it
2018-01-12 23:18:59 +01:00
Beat Küng
794c7a5a0f
load_mon: fix tasks index & fds_free initialization
...
Makes sure that if CONFIG_NFILE_DESCRIPTORS == 0, no warning is printed.
2018-01-12 23:18:59 +01:00
Lorenz Meier
eb43b86a4b
Load mon: Also monitor file descriptors
...
It is important that tasks do not run out of them and this addition will provide a warning and log evidence if it goes wrong.
2018-01-12 23:18:59 +01:00
Daniel Agar
1037e983ab
LidarLite port to raspberrypi ( #8633 )
2018-01-12 16:20:00 -05:00
Beat Küng
86e2f9c306
posix shell: handle Home & End (Editing keys)
...
See https://github.com/mintty/mintty/wiki/Keycodes#editing-keys
2018-01-12 16:18:44 +01:00
ChristophTobler
dfe1b59949
posix main: add Home/End to jump to beginning/end
2018-01-12 16:18:44 +01:00
ChristophTobler
d523cb54a5
posix main: add left/right arrow
...
with this commit, lines can be edited with the lef/right arrow key
2018-01-12 16:18:44 +01:00
Daniel Agar
137a2444a8
VTOL standard respect VT_ELEV_MC_LOCK
2018-01-11 16:18:47 -05:00
Daniel Agar
2756c76613
mixer lib delete old multi_tables.py and cleanup cmake ( #8658 )
2018-01-11 15:56:15 -05:00
Matthias Grob
385212f2c1
Simulator: virtual battery drain stops by default at 50% to avoid failing preflight checks to take off again
...
also added comments and removed throttle compensation because there is no real battery emulation with load drop
2018-01-11 08:36:03 +01:00
Matthias Grob
8c998c1309
Battery: enhanced voltage, capacity estimate fusion, set empty voltage to a useful value for reasonable lipo usage
2018-01-11 08:36:03 +01:00
Matthias Grob
919b6ae239
Battery added proper initialization for the capacity voltage fusion and doubled the time constant
2018-01-11 08:36:03 +01:00
Matthias Grob
663913a1dc
Battery: added simple fusion of capacity based estimate and voltage based estimate
2018-01-11 08:36:03 +01:00
Matthias Grob
823d423456
Battery: refactor current integration to be easier understandable
2018-01-11 08:36:03 +01:00
Matthias Grob
9fbd6b912d
Battery: adapt output constraints to possible values, only calculate remaining capacity if capacity is configured
2018-01-11 08:36:03 +01:00
Matthias Grob
60cc132c8a
Battery: refactor _param out of the variable names and use 0.f for zero floats to make code more readable
2018-01-11 08:36:03 +01:00
Matthias Grob
90b326f3b5
Battery: get rid of the duplicate filtering, just use the already existing methods
2018-01-11 08:36:03 +01:00
Matthias Grob
101aeadf03
Battery: revised voltage drop calculation to fit the new simpler easier to verify estimation
2018-01-11 08:36:03 +01:00
Matthias Grob
52e2aecaf1
Battery: simplify linear voltage relation, currently neglecting the real world voltage drop under load
2018-01-11 08:36:03 +01:00
Matthias Grob
bc15fdf267
Simulator: virtual battery drain simplified and stops when battery is exactly empty
...
it's a lot more readable and battery draining stops exactly at the empty battery voltage which makes debuging easier because it's directly predicatable
2018-01-11 08:36:03 +01:00
Beat Küng
f561d16334
fix param_export: off-by-one buffer size
...
In rare circumstances, the buffer size was too small by 1 byte, leading
to a param export failure. And leading to a reset of all params!
This could only happen when the last saved param was a float.
Also the realloc_ok initialization is not needed.
2018-01-10 22:03:14 +01:00
Beat Küng
f8ceee0cf2
fix param: need to use fsync() and not px4_fsync()
...
It's used with real OS FD's.
2018-01-10 22:03:14 +01:00
Beat Küng
f962e9826b
param_export: reduce bson buffer size from 512 to 256
...
Some modules call this (and maybe in rare circumstances), which could lead
to stack overflows. With our current headroom of >= 300bytes, 256 should
be ok.
This increases the export time from ~28ms to ~34ms in my case (on a
Pixracer)
2018-01-10 22:03:14 +01:00
PX4 Jenkins
ee9853a3d6
Update sitl_gazebo submodule Tue Jan 9 18:19:31 CST 2018
2018-01-10 17:57:21 +01:00
Beat Küng
5fe203a510
rcS: cleanup defaults for SYS_FMU_TASK & FMUv5 params
...
- SYS_FMU_TASK is now enabled for PX4FMU_V4 PX4FMU_V4PRO PX4FMU_V5, but
it's only set on autoconf
- v5 companion is now TELEM2 (same as all other boards)
2018-01-10 07:59:32 +01:00
Beat Küng
48a6a98071
rcS: merge 'ver hwcmp' for different boards, add V5 to px4flow
2018-01-10 07:59:32 +01:00
Beat Küng
92a667fca5
rc.sensors: document sensors for NXPhlite
2018-01-10 07:59:32 +01:00
Beat Küng
a56d2ab981
rc.interface: merge 'ver hwcmp' for different boards
2018-01-10 07:59:32 +01:00
Beat Küng
dac2a93ea2
logger: add sensor_combined at full rate to high rate profile
...
useful in case the ekf replay topics are not enabled
2018-01-10 07:59:32 +01:00
PX4 Jenkins
0ead55d38a
Update mavlink v2.0 submodule Tue Jan 9 03:08:35 EST 2018
2018-01-09 13:05:39 -05:00
Daniel Agar
bdfb291026
Jenkins make distclean instead of clean only
2018-01-09 13:05:08 -05:00
Daniel Agar
82f661b37f
Makefile distclean deinit all submodules
2018-01-09 13:05:08 -05:00
Huang
60eb1c2262
mc_pos_control: delete the unused variable
2018-01-09 10:03:44 +01:00
Daniel Agar
2cccbee0d5
runway_takeoff use BlockParamBool for RWTO_TKOFF
2018-01-09 09:11:39 +01:00
Daniel Agar
3d7afaafbd
launchdetection use BlockParamBool for LAUN_ALL_ON
2018-01-09 09:11:39 +01:00
Daniel Agar
a9bbbdce82
controllib add BlockParamBool (int32 wrapper)
2018-01-09 09:11:39 +01:00
Daniel Agar
a02cd869c3
mavlink receiver remove unnecessary rates setpoint class member
2018-01-09 01:01:53 -05:00
Daniel Agar
fe22b856d6
mavlink receiver remove unnecessary attitude setpoint class member
2018-01-09 01:01:53 -05:00
Daniel Agar
cf2d794da9
Subscription remove unused instance class member
2018-01-09 00:48:54 -05:00
Daniel Agar
8fdcdedc84
Publication remove unused instance class member
2018-01-09 00:48:54 -05:00
Lorenz Meier
3d9cd5c0bc
Params: Ignore volatile
2018-01-08 17:01:02 +01:00
Lorenz Meier
48af6b6d61
System: Mark reset state param as volatile
2018-01-08 09:27:22 +01:00
Lorenz Meier
5a0e4c137e
Tools: Simplify QGC meta sync script using the makefile tools
2018-01-08 09:27:22 +01:00
Lorenz Meier
1739deb517
Makefile: Fix missing params by searching one level deeper
...
This is required for generating documentation
2018-01-08 09:27:22 +01:00
Lorenz Meier
501dd82aaf
Systemlib: Move circuit breaker into Developer category
2018-01-08 09:27:22 +01:00
Lorenz Meier
115288301e
INAV: Move circuit breaker to Developer category
2018-01-08 09:27:22 +01:00
Lorenz Meier
487530f791
Use SITL as metadata build validation target
...
This allows to build all params and test them.
2018-01-08 09:27:22 +01:00
Lorenz Meier
d6a2002505
Sensors: Update param metadata
...
This hides these parameters by default from the user.
2018-01-08 09:27:22 +01:00