TSC21
1ea5280299
microRTPS: use package.version to compare FastRTPS lib versions
2020-03-24 13:31:41 +00:00
bresch
1f4b2d1d53
Commander: replace deprecated warnx by PX4_WARN
2020-03-23 13:45:00 +01:00
bresch
c23ef0af4b
Flight termination: lockdown if failure is detected on takeoff
...
During the first few seconds after takeoff, the failure detector is allowed to
trigger motor lockdown.
This is done for safety reasons to detect tipping-over or unstable
tuning gains
2020-03-23 13:45:00 +01:00
bresch
5babf644f0
MPC: limit tilt to maximum safe value of 89 degrees
...
The algorithm fails at 90 degrees due to tanf being INF
2020-03-23 13:36:23 +01:00
JaeyoungLim
315135c07e
Fix indentation in run script and update submodule
2020-03-23 10:55:13 +01:00
Julian Oes
103bfd0d30
mavsdk_tests: fix wait script output
2020-03-23 10:55:13 +01:00
Julian Oes
29c102b205
mavsdk_tests: wait for gz to run for model spawn
2020-03-23 10:55:13 +01:00
JaeyoungLim
b1d3b95ebf
Add gzmdoelspawning to mavsdk tests
2020-03-23 10:55:13 +01:00
JaeyoungLim
2ef37cd065
Spawn models separately from gazebo models
...
Detach model spawning process from the world description file, so that the same model can be used with different worlds
2020-03-23 10:55:13 +01:00
Matthias Grob
976ada411b
Matrix: min max comments and test style
2020-03-23 09:46:07 +01:00
Matthias Grob
fa7153ecfb
Matrix: omit min max nan case with same result
...
I observed this during review in
https://github.com/PX4/Matrix/pull/105/files#r348386226
2020-03-23 09:46:07 +01:00
Daniel Agar
8738c26426
boards: enable NuttX SPI DMA buffers
...
- update to NuttX with stm32f4 and stm32f7 SPI DMA internal buffers
- remove explicit DMA buffer allocations from new IMU drivers
- restore original BOARD_DMA_ALLOC_POOL_SIZE
- decrease SPI DMA thresholds based on fmu-v2/v3/v4/v5 bench testing
2020-03-22 19:24:26 -04:00
Daniel Agar
b73ec18abb
boards: add px4_fmu-v4 and px4_fmu-v5 optimized (-O3) build variants
2020-03-22 17:50:17 -04:00
JacobCrabill
1e5784609f
UAVCAN Sensors: Improve error handling
...
Also add new 'generic' device types for UAVCAN sensors
Other misc. cleanup and style changes.
2020-03-21 12:39:29 -04:00
Jacob Crabill
693a47fca3
Update src/drivers/uavcan/sensors/baro.cpp
...
Use absolute-zero constant instead of 273.15f
Co-Authored-By: Daniel Agar <daniel@agar.ca >
2020-03-21 12:39:29 -04:00
JacobCrabill
4c8cfa140a
UAVCAN: Overhaul SensorBridge drivers
...
Supposedly multiple sensor callbacks were supported; in reality, this
was not the case, as the mag SensorBridge in particular can only
calibrate one compass, leading to a race condition on which compass
appears first on the bus to get published and calibrated (with no
warning to the user that the 'wrong' compass is being used).
For sensors with existing generic driver classes (baro and mag) the
sensor bridges use these classes for the driver registration, and uORB
publication, and calibration interface (ioctl) handling.
2020-03-21 12:39:29 -04:00
JacobCrabill
79dc313260
uavcan: Add device IDs to baro, flow publishers
...
Can now see proper UAVCAN bus and unique device ID for barometer
instances; optical flow will also have the UAVCAN node ID assigned as
sensor ID.
2020-03-21 12:39:29 -04:00
JacobCrabill
71e4a36ba4
UAVCAN: GNSS sensor bridge: Support multiple pubs
...
UavcanGnssBridge did not support more than 1 GNSS callback/publisher.
This has now been fixed; it works the same as the baro, mag, and flow
sensor bridges. The EKF2 still doesn't support more than 2 GPS
publishers, however.
2020-03-21 12:39:29 -04:00
Beat Küng
1fe79818d9
fix IntrusiveQueue::remove: several bugs that led to improper state of the queue
...
We also have to set removeNode->next to null, as it is used to test if the
item is in the queue.
2020-03-21 12:00:09 -04:00
Beat Küng
336745f9f7
tfmini: reduce sampling rate from 10kHz to 143Hz
...
10kHz sampling seems excessive, given that the sensor is expected to output
at 100Hz.
Also don't reschedule immediately in case we have not received any data.
2020-03-21 12:00:09 -04:00
bazooka joe
ad2d65df8d
return with error from _log_request_list() in case of failed allocation
2020-03-21 16:50:46 +01:00
Jacob Dahl
b566de2c36
uavcannode: GPS add timestamp, covariance, and corrected integer overflow on lat/lon
2020-03-21 11:43:56 -04:00
TSC21
341dd6ba26
update submodule src/lib/ecl
2020-03-20 23:18:04 +01:00
TSC21
870ec380f1
elk_helper: use ISFINITE macro instead of isfinite()
2020-03-20 22:42:46 +01:00
rolandash
7d7fe9e4da
Add onboard qmc5883 support for MindPX/MindRacer.
2020-03-20 13:19:53 -04:00
Daniel Agar
1be959cba8
InvenSense ICM-40609-D IMU driver
...
This is another new InvenSense sensor with max output data rate of 32 kHz (both accel & gyro), on board anti-aliasing filter, and accel range 32G. Overall quite similar to the ICM-42688-P added in #14420 , but with doubled accel range and without the optional high resolution output or clock sync.
2020-03-20 13:02:13 -04:00
Daniel Agar
46e5364580
InvenSense ICM-42688-P IMU driver
...
This is a new InvenSense sensor with max output data rate of 32 kHz (both accel & gyro), on board anti-aliasing filter, optional higher resolution output (18 bit accel, 19 bit gyro), and clock sync.
2020-03-20 13:01:02 -04:00
Nico van Duijn
240aad1aef
mavlink_mission: beautify mission download error
...
This commit makes the IGN REQUEST LIST: Busy message more user-oriented
and actionable.
2020-03-20 12:54:00 +01:00
Nico van Duijn
849d3a1b54
mavlink_mission: robustify against dropped ack
...
This commit handles incoming MISSION_REQUEST_LIST messages such that
they are no longer ignored if the previously requested mission has
sent all mission items but the ack has never been received.
This was the cause for frequent "IGN REQUEST LIST: Busy" warnings
2020-03-20 12:54:00 +01:00
SalimTerryLi
dc8e775d8f
ADC: replace ioctl with uorb message ( #14087 )
2020-03-20 11:23:32 +01:00
Beat Küng
40af5b0fbe
logger: fix initial subscribing to topics
...
write_all_add_logged_msg() requires at least some subscriptions to be added
initially, as this message is used to separate ULog header from data.
2020-03-20 11:21:32 +01:00
Daniel Agar
fb27d96ca1
Update submodule mavlink v2.0 to latest Fri Mar 20 00:38:07 UTC 2020
...
- mavlink v2.0 in PX4/Firmware (0213fd662a ): https://github.com/mavlink/c_library_v2/commit/82bef70f12492a4fb17456534a3ce068f4647502
- mavlink v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/11589a51bec0e96ffe80366c387997f7c44cffa3
- Changes: https://github.com/mavlink/c_library_v2/compare/82bef70f12492a4fb17456534a3ce068f4647502...11589a51bec0e96ffe80366c387997f7c44cffa3
11589a51 2020-03-19 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/5a18bf9101863e020ddb18617b2d210258c9069f
Co-authored-by: PX4 BuildBot <bot@px4.io >
2020-03-19 21:21:08 -04:00
Daniel Agar
6c513cf29d
Update submodule GPS devices to latest Fri Mar 20 00:38:17 UTC 2020 ( #14432 )
...
- GPS devices in PX4/Firmware (daf8a9fb12097b09fa1291b16cfe88f10a53b193): https://github.com/PX4/GpsDrivers/commit/c25a8f22c43e22b7c23106470b08fb17678042ef
- GPS devices current upstream: https://github.com/PX4/GpsDrivers/commit/0cd890ac60dbf6e535ccd966f98b85a33eddcc72
- Changes: https://github.com/PX4/GpsDrivers/compare/c25a8f22c43e22b7c23106470b08fb17678042ef...0cd890ac60dbf6e535ccd966f98b85a33eddcc72
0cd890a 2020-03-19 Daniel Agar - ubx: fix whitespace
Co-authored-by: PX4 BuildBot <bot@px4.io >
2020-03-19 21:20:38 -04:00
bresch
0213fd662a
update ecl
2020-03-19 20:27:39 +03:00
bresch
0f2f72a757
Ekf2: Add bitmask to select terrain estimator aiding sources
2020-03-19 20:27:39 +03:00
bresch
20c3db69e4
Terrain Est: Add sensor aiding bitmask
...
This adds the ability to select range finder and/or optical flow fusion for
terrain estimate.
2020-03-19 17:53:30 +01:00
Daniel Agar
e5d30c4413
Mavlink: split ESTIMATOR_STATUS and VIBRATION streams
2020-03-19 11:17:31 -04:00
bazooka joe
7b37f329f0
batt_smbus fixes
...
fixed wrong calculation of max_cell_voltage
adding missed max_cell_voltage_delta
some code beautify
2020-03-19 09:34:02 +01:00
bazooka joe
53bc5fddad
smbus return with error if failed transfer
2020-03-19 09:34:02 +01:00
Julian Oes
6d654cb50b
mavsdk_tests: improve usage text
...
These are improvements based on the review by @hamishwillee
in https://github.com/PX4/Devguide/pull/982 .
2020-03-19 08:53:21 +01:00
Matthias Grob
d0349fcf07
mc_pos_control: allow zero thrust during takeoff and landing
...
Otherwise the takeoff ramp doesn't start with zero thrust and
the land thrust cut cannot cut to zero.
2020-03-18 20:36:05 +01:00
Matthias Grob
5027c68c0a
mc_pos_control: handle takeoff and landing thrust limit the same way
...
The landing thrust limit was after the position controller and
could be inconsistent with what the takeoff limit did. This
resulted in different thrust values sequentially getting applied
during landing.
2020-03-18 20:36:05 +01:00
Matthias Grob
3049a3d14d
mc_pos_control: prevent takeoff with thrust setpoint
...
This was only necessary for stabilized mode before #10805 .
The unit length thrust setpoint will anyways not be available
anymore soon because it gets replaced with the acceleration
setpoint in m/s².
2020-03-18 20:36:05 +01:00
Matthias Grob
1f98ebdb47
mc_pos_control: switch order of setpoint amendment
...
to make sure the takeoff limitation is always done last.
2020-03-18 20:36:05 +01:00
bresch
a8063ac948
HTE: enable by default
2020-03-18 19:47:30 +01:00
Julian Oes
89599f345f
mavsdk_tests: c++ test_runner is now mavsdk_tests
2020-03-18 17:57:41 +00:00
Julian Oes
ade39481ad
mavsdk_tests: only env vars that are set
...
Otherwise this raises a KeyError.
2020-03-18 17:57:41 +00:00
Julian Oes
5ea40c57c6
workflows: add more tests outside of Europe
2020-03-18 17:57:41 +00:00
Julian Oes
759e3d6a04
mavsdk_tests: pass PX4_HOME_ env variables on
...
This way tests can be run at different locations.
2020-03-18 17:57:41 +00:00
Julian Oes
4a91d791b1
mavsdk_tests: remove commented out code
2020-03-18 17:57:41 +00:00