Daniel Agar
f4e5b2bf77
Update submodule mavlink v2.0 to latest Mon May 6 12:38:37 UTC 2019 ( #11973 )
...
- mavlink v2.0 in PX4/Firmware (0d543e29bb4535df9654c1f3a7c8f0712e81a120): d8c4e5def3
- mavlink v2.0 current upstream: 5700013402
- Changes: d8c4e5def3...5700013402
2019-05-06 13:16:25 -04:00
Julian Oes
0a978f51e6
px4_atomic: use volatile hack for Snappy
...
It looks like the atomic builtins are not available using QuRT and the
Hexagon toolchain, so our best bet is to use `volatile` for the atomics.
2019-05-06 12:06:01 -04:00
Julian Oes
e6621bf7fb
boards: ignore sih for Snappy
...
When sih (simulation in hardware) was compiled for Snapdragon, we got
the linking problem below. I'm not sure why, supposedly the symbol
`double sin(double)` is missing.
undefined PLT symbol _LSin (705) /libpx4.so (symbol.c:303)
2019-05-06 12:06:01 -04:00
Oleg Kalachev
7ec6f0dca6
lpe: use minimum flow altitude from uORB instead of hardcoding
2019-05-05 02:57:58 -05:00
David Sidrane
07e6730cd7
Add nxp_fmuk66-v3 to QGC deploy
...
See https://github.com/mavlink/qgroundcontrol/issues/7360
2019-05-04 09:14:35 -05:00
Beat Küng
2448a84c36
SITL: add if750a model
2019-05-03 13:32:48 +02:00
Claudio Micheli
e7075a6660
rcS: Fix multiple set IO_PRESENT.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
2019-05-03 12:20:49 +02:00
Julian Oes
7dc10d2bea
CMakeLists.txt: fix cmake warning
...
It implicitly converted STRINGS to STRING.
2019-05-02 16:26:37 -05:00
bresch
881d0f4143
UAVCAN - update ROMFS_FW_PATH to /etc/uavcan/fw. to match documentation
2019-05-02 16:22:33 -05:00
Beat Küng
74990cadc8
uorb: avoid printf while DeviceMaster is locked
...
This fixes a potential dead-lock when 'uorb status' was used via MAVLink
shell.
The dead-lock chain is: DeviceMaster::lock() -> printf -> output to a pipe,
which blocks until a reader reads the data. In that case it's mavlink.
If mavlink makes a call that requires DeviceMaster::lock() (such as
orb_exists), it dead-locks.
This patch moves all printf's out of the locked state.
2019-05-02 10:26:41 +02:00
Matthias Grob
29719894f7
AttitudeControl: remove unused setter
2019-04-30 23:18:44 -05:00
Julian Oes
9e96c4a4ea
sitl_gazebo: update submodule ( #11939 )
...
This should fix the regression where the mag values were not properly
initialized and caused EKF2 to stop in CI.
2019-04-30 23:18:04 -05:00
Julian Oes
611417acd2
ROMFS: use auto-disarm in HITL Gazebo with Iris
...
It is expected that Iris auto-disarms the same as in SITL.
2019-04-30 06:39:35 -05:00
Matthias Grob
269d077fae
ekf2: only check ground effect if it's configured
2019-04-30 12:34:28 +02:00
Roman
f034d2da19
ekf2: fixed bug in baro ground effect triggering logic
...
- when either terrain data was temporarily not valid (flying at high
distance to the ground) or the vehicle was not close to the ground
(_param_ekf2_gnd_max_hgt) the ekf switched to using the land detector
ground effect flag.
Signed-off-by: Roman <bapstroman@gmail.com>
2019-04-30 12:34:28 +02:00
Daniel Agar
9bad61b86b
Improve robustness to bad and lost airspeed data ( #11846 )
2019-04-30 03:08:23 -04:00
Daniel Agar
59ebb9af0a
Update submodule mavlink v2.0 to latest Tue Apr 30 00:39:26 UTC 2019 ( #11926 )
...
- mavlink v2.0 in PX4/Firmware (a26c25ca5bd0168dd2274dd8aa0392aba10feff2): c6ab045934
- mavlink v2.0 current upstream: d8c4e5def3
- Changes: c6ab045934...d8c4e5def3
2019-04-30 03:05:25 -04:00
Roman
2bd8b517c5
FwPositionControl: don't do takeoff help for vtol
...
- takeoff help is used for fixed wings, it increases the altitude setpoint
after a launch. A vtol does not need this as it's already sufficiently
high up in the air.
Signed-off-by: Roman <bapstroman@gmail.com>
2019-04-30 02:45:49 -04:00
Daniel Agar
5d7a82b8e2
av/x-v1 support PMW3901 on SPI2 (now treated as external)
2019-04-30 02:27:29 -04:00
Daniel Agar
db5dbb25b3
av/x-v1 board support cleanup and sync with fmu-v5
2019-04-30 02:27:29 -04:00
Matthias Grob
56591954ad
Commander: reevaluate RC mode on altitude lock
2019-04-29 13:24:29 -04:00
Daniel Agar
f032d0d9fc
SYS_MC_EST_GROUP mark LPE unsupported and update airframes ( #11925 )
2019-04-29 11:50:36 -04:00
Daniel Agar
2142459027
Revert "simulator: remove hack for diff_pressure noise"
...
This reverts commit 4a71984f77
.
2019-04-29 10:46:38 -04:00
Daniel Agar
d93efa9169
Revert "sitl_gazebo: update submodule"
...
This reverts commit 585b9d8cf1
.
2019-04-29 10:46:38 -04:00
Julian Oes
4ef59e0a59
standard_vtol: transition at airspeed of 16 m/s
...
This way we prevent a big dip due to TECS in altitude when the
transition happens at 10 m/s already. Apparently the rule of thumb
is to set this transition speed at the same as airspeed cruise speed.
2019-04-28 18:22:21 -04:00
Julian Oes
4a71984f77
simulator: remove hack for diff_pressure noise
...
The noise for airspeed is now applied on the Gazebo side and we can
remove this hack.
2019-04-28 18:22:21 -04:00
Julian Oes
585b9d8cf1
sitl_gazebo: update submodule
...
Includes:
- Fix for vibration on ground for standard_vtol.
- Noise for diff pressure / airspeed on Gazebo side.
- Fix for macOS magnetometer plugin linking error.
2019-04-28 18:22:21 -04:00
Matthias Grob
3bf5d6af12
commander: fix RC mode switch not getting applied after boot
...
the condition to enter the rc mode switch evaluation was neglecting
the first connection of an RC when "no RC switch changed". this means
depending on the actual initialization values of _last_sp_man and the
desired mode preselected on the RC while connecting it would not get
evaluated.
2019-04-26 21:04:10 +02:00
Matthias Grob
f177a68da9
commander: negate main_state_rc entering condition
...
pure refactor using De Morgan's law to make the condition more intuitive
since you think about when should I enter and not when should I skip
2019-04-26 21:04:10 +02:00
Matthias Grob
1f3ebd98b1
commander: split up set_main_state_rc entering condition
...
pure refactor of the huge condition into smaller const bool junks
2019-04-26 21:04:10 +02:00
Matthias Grob
21194239c7
FlightTaskAuto: revisit yaw rate limit
...
There were multiple comments not addressed in pr #11904 .
See commit 4bcb37f9bc9ef20b521ebcf33e7a0ed08fa86ccd
2019-04-26 18:58:50 +02:00
Beat Küng
c3ac1497c0
mpu9250: fix mag publishing garbage on IMU failure (SPI only)
...
The Pixhawk cube as an internal mag on SPI. If there was a bad register
read (e.g. on an IMU failure), _register_wait was non-zero and there was
no transfer but _mag still published mpu_report.mag.
2019-04-26 18:49:28 +02:00
Thijs Raymakers
33fe69a3e8
adis16497: fix TEMP_OUT conversion according to the datasheet
2019-04-26 15:22:06 +02:00
bresch
89bc68e12b
Auto - Rename MC_YAWRAUTO_MAX -> MPC_YAWRAUTO_MAX
2019-04-26 12:43:26 +02:00
bresch
581d25f77f
Auto mode traj - limit yaw setpoint rate of change when generated in the flight task instead of clamping the yaw rate in the controller
...
Move yaw setpoint slew rate from AutoLineSmoothVel to Auto. The slew rate is now applied consistently to all the auto FlightTasks
2019-04-26 12:43:26 +02:00
mcsauder
e6b427022a
Add missing underscore prefix to a member variable in mavlink_main.cpp.h and delete unnecessary struct specifiers in mavlink_main.h.
2019-04-26 11:33:17 +02:00
mcsauder
73fb30f251
Migrate an additional set of 16 variable initilializations from the Mavlink class constructor list to their respective declarations.
2019-04-26 11:33:17 +02:00
bresch
903deb7579
RTL - Skip descend state if no delay is set between descend and land
2019-04-25 18:24:04 +02:00
Alexis Paques
5763787840
Adding narg to allow empty arguments
2019-04-25 09:56:06 +01:00
misswhile
37fe090225
fix bmp280 driver init faild.
2019-04-25 10:19:12 +02:00
Julian Oes
c95394f57f
navigator: fix uninitalized param values
...
By declaring the params above the navigator modes inheriting from
mission block we make sure the params in navigator are set before
read in the constructor of mission block.
2019-04-24 11:15:43 -04:00
Julian Oes
90ee26dd2d
mavlink_mission: properly initialize padding
...
This prevents uninitialized padding from being written to dataman.
2019-04-24 11:15:43 -04:00
Julian Oes
4c56994d7a
mavlink_system: set update_counter for safe points
...
This variable was not set and lead to uninitialized memory being written
to dataman.
2019-04-24 11:15:43 -04:00
Julian Oes
bf32ff32f8
dataman: make _file_write more readable
...
This should not be any functional change. The only difference are the
variable scopes, and early return versus nested ifs.
2019-04-24 11:15:43 -04:00
Julian Kent
dc3341db59
Fix uninitialized memory found using Valgrind
2019-04-24 11:15:43 -04:00
Julian Oes
a9c3bce20d
px_uploader.py: fix version check
...
Presumably older versions of pyserial do not implement __version__ but
only VERSION, so we need to check for that as well.
2019-04-24 14:47:10 +02:00
Roman
42d0522cdd
FixedWingAttitudeControl: removed check for negative airspeed and slew rate
...
on airspeed scaling
Signed-off-by: Roman <bapstroman@gmail.com>
2019-04-24 14:27:37 +02:00
Daniel Agar
36aeb9defc
WIP: FW attitude control limit airspeed scaling changes per iteration
2019-04-24 14:27:37 +02:00
Martina Rivizzigno
eba0bb389a
ObstacleAvoidance: fix comment, update failsafe position if one axis is NAN
2019-04-24 08:54:50 +02:00
Martina Rivizzigno
e037edd2cc
ObstacleAvoidance: once the commadand loiter has been sent, keep using
...
the first position when the oa fails as setpoint to avoid jumps
2019-04-24 08:54:50 +02:00