29766 Commits

Author SHA1 Message Date
Daniel Agar
1d191cc141 px4flow driver move to new WQ and cleanup 2019-07-26 20:03:21 -04:00
Daniel Agar
a462bfeb53 vscode add v5x variant (for cmake configure) 2019-07-26 12:59:27 -04:00
PX4 Build Bot
36534d5bab Update submodule ecl to latest Fri Jul 26 12:38:35 UTC 2019
- ecl in PX4/Firmware (83316cf7b0484e7ba7f9b61201dea7215185da49): e1751188fd
    - ecl current upstream: d38164fc8e
    - Changes: e1751188fd...d38164fc8e

    d38164f 2019-07-21 Jaeyoung-Lim - Fix flag for initialization
2019-07-26 12:04:07 -04:00
TSC21
eb951ede6a urtps templates: minor cleanup 2019-07-26 15:05:54 +02:00
TSC21
11a28665b7 px_generate_uorb_topic_files: cleanup uneeded conditions 2019-07-26 15:05:54 +02:00
TSC21
85bcfd7d72 generate_microRTPS_bridge: remove commented code 2019-07-26 15:05:54 +02:00
TSC21
2b4c878e77 rebase: sync up submodules 2019-07-26 15:05:54 +02:00
TSC21
c15e54445e increase cutoff margin for alias matching 2019-07-26 15:05:54 +02:00
TSC21
5b2d952e4b add checker for multitopic msg naming 2019-07-26 15:05:54 +02:00
TSC21
3d9f83a4f2 microRTPS_bridge: structural change to make possible to generate pub/sub code for multi-topics/aliased msgs 2019-07-26 15:05:54 +02:00
TSC21
a747116eab microRTPS bridge: make mandatory that all the uORB messages have their RTPS id 2019-07-26 15:05:54 +02:00
Julian Oes
98dfa30838 commander: fix disarming for rovers
We have to ignore the landed flag for rovers, it doesn't really apply
for them.
2019-07-26 02:52:38 -07:00
Julian Oes
308d91e5ff commander: prevent potential disarms in-air
This fixes the terrifying case where the drone disarms in-air just
because it receives a MAVLink disarm command. We now check param2 for a
magic number which enforces arming/disarming.

This is added to the mavlink protocol in:
https://github.com/mavlink/mavlink/pull/1162
2019-07-26 02:52:38 -07:00
Daniel Agar
71613ac631 Jenkins fetch all tags 2019-07-25 11:14:16 -04:00
Timothy Scott
57352ae3bd Reinstated rover CI test 2019-07-25 10:53:39 -04:00
Timothy Scott
80f2603b17 Fixed timing of rover pos control 2019-07-25 10:53:39 -04:00
Beat Küng
4f090980ab kakutef7 board_config: remove usb valid defines
Otherwise 'system_power' gets published with voltage5v_v = 0, as there is
no 5V sensing pin, leading to Avionics Power Low preflight check failures.
2019-07-25 10:38:57 -04:00
Beat Küng
72ddf3e0aa tune_control: use orb queue advertisement consistently 2019-07-25 10:38:57 -04:00
Beat Küng
c869cb0ea5 validate_yaml.py: fix for python3
RuntimeError: dictionary changed size during iteration
2019-07-25 10:38:57 -04:00
Beat Küng
8e5aaff76b airframes: add Kopis 2 2019-07-25 10:38:57 -04:00
Matthias Grob
5afa404b7f appveyor: fix PX4 version format check
by removing shallow clone such that we can infer the version from the
last tag
2019-07-25 10:36:58 -04:00
David Sidrane
e296297ab7 Revert "hotfix for logger: use '%i' instead of '%zu'"
This reverts commit e6aa03520993201c618de32197ab3ee92d4b0738.
  Root cause was fixe in Nuttx and backported
2019-07-25 05:28:46 -07:00
David Sidrane
df0599913e Firmwarte master with nuttx printf backport 2019-07-25 05:28:46 -07:00
RomanBapst
c0053409a3 ak09916: fixed driver not reporting magnetometer as external
Signed-off-by: RomanBapst <bapstroman@gmail.com>
2019-07-25 13:17:08 +02:00
Hamish Willee
2b8337e5e2 Add units for EKF2_RNG_A_HMAX and EKF2_RNG_A_VMAX (#12545) 2019-07-25 08:09:35 +02:00
Julien Lecoeur
8f47535b54 ROMFS: fix airframe incremental build 2019-07-24 05:40:53 -07:00
Julien Lecoeur
24c2846750 ROMFS: add explicit dependency to parser scripts 2019-07-24 05:40:53 -07:00
RomanBapst
2fbb70d9ca mc_att_control: output zero throttle in manual mode when landed
- MPC_MANTHR_MIN is used as minimum throttle in attitude control mode when
the vehicle is in air. This is useful to retain some control around roll and
pitch axis if airmode is not enabled and the user demands zero throttle.
However, when the vehicle is landed there is not need to keep the throttle
at a higher value than zero.

Signed-off-by: RomanBapst <bapstroman@gmail.com>
2019-07-23 17:12:45 +02:00
Beat Küng
ac5669deb4 CI: ensure 'git fetch --tags' is executed for all Firmware builds 2019-07-23 13:16:43 +02:00
Beat Küng
05ff7bb731 version: validate format of the git tag
This fails the build if a wrong version tag is used.
A wrong tag leads to wrong reporting in QGC, and incorrect error messages
about minimum required PX4 version.
It also leads to wrong statistics on Flight Review.
2019-07-23 13:16:43 +02:00
Timothy Scott
2ed8ebf889 rover_pos_control: refactor to ModuleBase and use C++ Param API 2019-07-23 11:16:52 +02:00
Julien Lecoeur
e23e3d7bae Airframe parser: add docs 2019-07-22 13:02:45 +02:00
Julien Lecoeur
daeba4e75f Add airframe .post scripts on NuttX targets 2019-07-22 13:02:45 +02:00
Matthias Grob
e964af9262 commander_params: enable RC override by default
It doesn't affect fixed wing flying anymore. I disabled it for the
deltaquad since I presume @sanderux prefers to have the feature disabled
even when flying in multicopter mode.
2019-07-22 09:57:37 +02:00
Matthias Grob
706500f19c Commander: make RC override multicopter only
AAs discussed in the devcall this functionality is only useful for
rotary-wing (multicopter) flying since it's a big safety hazard to
accidentally bring a fixed wing out of an auto mode e.g. a mission
and fly away in a straight line or into an obstacle.
2019-07-22 09:57:37 +02:00
Matthias Grob
5c1ab06343 Commander: pure refactor of RC override conditions 2019-07-22 09:57:37 +02:00
Bob Long
84a0d16386 Clarify weird behavior of the LIS3MDL
See issue #12514
2019-07-21 12:08:26 -04:00
Beat Küng
b71bae414b param: fix potential nullptr dereferencing on param import
NuttX 7.28 seemed to handle this gracefully, but officially passing NULL
results in undefined behavior, and with 7.29 leads to a hardfault.

This happens on configs with flash-based params, on the first unsuccessful
import attempt.
2019-07-19 09:55:08 +02:00
Matthias Grob
aaad71faab commander_params: enable automatic disarming after land detection by default 2019-07-18 14:36:50 +02:00
Daniel Agar
9986a88697 mavlink: split BATTERY_STATUS from SYS_STATUS update and handle all bricks (#12034) 2019-07-18 13:32:41 +02:00
Timothy Scott
51d4239eee Commented out rover SITL test 2019-07-17 16:52:24 +02:00
Timothy Scott
ecf396443f Minor bugfix 2019-07-17 10:47:56 +02:00
Timothy Scott
b9a2c9daf8 Fixed uninitialized variable 2019-07-17 10:47:16 +02:00
Mark Sauder
4a02475dd1 rcS: reduce a few LOC in AUTOCNF logic (#12467)
* Set/unset rcS vars at beginning and end of rcS script and reduce a few LOC checking SYS_AUTOCONFIG with improved logic.

* Restore current placement of set/unset vars in rcS script to leave only the SYS_AUTOCONFIG logic modification.

* Replace set AUTOCNF no after inadvertent deletion.
2019-07-16 16:48:25 +02:00
Beat Küng
e6aa035209 hotfix for logger: use '%i' instead of '%zu'
Work-around for https://github.com/PX4/Firmware/issues/12485.

This can be reverted after the root-cause is fixed.
2019-07-16 13:11:41 +02:00
bresch
ea0e164145 FlightTask - Rename state_prev to last_setpoint 2019-07-16 13:09:09 +02:00
bresch
37a9b90945 FlightTask - Move checkSetpoints function in each FlightTask to be tailored to the specific needs and avoid checking all the setpoints 2019-07-16 13:09:09 +02:00
bresch
24811cf550 FlightTask smoothVel - Initialize ekf reset counters when task is activated 2019-07-16 13:09:09 +02:00
bresch
1414f50cea FlightTask - When switching task, pass the last setpoints of the previous task to the new task
This is done to allow proper initialization of the new FlightTask and
give it a chance to continue the setpoints without discontinuity. The
function checkSetpoints replaces the setpoints containing NANs with an
estimate of the state. The estimate is usually the current estimate of
the EKF or zero.
The transition FlightTask also provides an estimate of the current
acceleration to properly initialize the next FlightTask after
back-transition. This avoid having to initialize the accelerations to
zero knowing that the actual acceleration is usually far from zero.
2019-07-16 13:09:09 +02:00
bresch
d24c415fd7 PID rate controller - Add controller gain to support Ideal PID form (ISA standard) 2019-07-16 10:24:19 +02:00