Matthias Grob
b607630ee7
battery_params: relax maximum for capacity thresholds
2020-06-05 09:55:24 -04:00
Daniel Agar
a1b0634258
Jenkins HIL test fix sensor timeouts
...
- stop logger when running tests
- decrease test priorities
- hrt test don't flush output
2020-06-04 22:09:07 -04:00
PX4 BuildBot
b5a5e8e45b
Update submodule ecl to latest Fri Jun 5 00:39:52 UTC 2020
...
- ecl in PX4/Firmware (d4fcf77c546c31c4c0b813e5034c66581b3b2877): https://github.com/PX4/ecl/commit/c91c78dcf67dee85225ada6621b6fd19ec008fd5
- ecl current upstream: https://github.com/PX4/ecl/commit/b3dc06d0cb572931000705ac04807eeae5e2401a
- Changes: https://github.com/PX4/ecl/compare/c91c78dcf67dee85225ada6621b6fd19ec008fd5...b3dc06d0cb572931000705ac04807eeae5e2401a
b3dc06d 2020-05-25 Roman Bapst - Added height above ground source bitmask indicating which sensor is used
62e15cb 2020-06-03 bresch - sensor_simulator: set IMU rate to 200Hz as this is the new value used in the Firmware
6126c19 2020-06-03 bresch - sensor_simulator: update EKF at IMU rate
59183f7 2020-06-02 Paul Riseborough - EKF: Reduce EKF-GSF vulnerability to large yaw gyro bias errors (#831 )
d0ddda8 2020-05-29 Matthias Grob - tecs: fix typo init(i)alized
86fc94b 2020-05-24 Kamil Ritz - Remove tilt align from position innovation check
b024cdd 2020-05-25 Mathieu Bresciani - unit test: check that the accel bias is only learned when observable (#827 )
2020-06-04 21:15:59 -04:00
Daniel Agar
31fe7af454
selectively increase optimization -Os -> -O2
...
- targetted at modules/libraries that benefit without drastically
increasing flash usage
- ignored on boards with CONSTRAINED_FLASH set
2020-06-04 20:59:52 -04:00
Beat Küng
32642b78bf
gyro filtering: apply IMU_GYRO_CUTOFF also to D-term
...
Greatly improves the noise on the d-term on a Kopis 2. Apparently the order
of filtering vs differentiating matters.
Also disables the DGYRO filter by default, as the D-term now already has
a default filter of 30Hz applied.
2020-06-04 20:58:40 -04:00
Beat Küng
5ce006dd8b
SYS_HITL: reserve value -1 for external HITL
2020-06-04 20:58:40 -04:00
David Sidrane
920355e851
bmi088 remove dump of registers that causes driver to fail
2020-06-03 21:09:08 -04:00
Julian Oes
c37ba26a2f
mavlink: remove outdated comment
2020-06-03 17:57:12 +02:00
Julian Oes
2c5b8a9491
mavlink: handle stream not updated
...
Our answer does not just depend on whether the stream was found but
whether we actually were able to send out an update.
2020-06-03 17:57:12 +02:00
Julian Oes
efb10a2fbc
mavlink: address review comments
2020-06-03 17:57:12 +02:00
Julian Oes
7d1b451e39
mavlink: add missing copyright header, pragma once
2020-06-03 17:57:12 +02:00
Julian Oes
afafc541d8
mavlink: use send() instead of using reset flag
...
I think we can just directly use send() and don't need to use the
workaround of resetting the send flag to trigger one send.
Also, we don't need to override it if we don't need to check any params.
2020-06-03 17:57:12 +02:00
Julian Oes
b54c44bd37
mavlink: don't send streams with interval 0
...
We only need to send them immediately if the interval is < 0 meaning
unlimited.
2020-06-03 17:57:12 +02:00
Julian Oes
3815e608f4
mavlink: create stream if needed and trigger once
...
Instead of creating the stream and deleting it again, we now create it
with a rate of 0 and trigger it once.
This should avoid heap fragmentation by continous allocations.
2020-06-03 17:57:12 +02:00
Julian Oes
acdc15e2cd
mavlink: create stream even if rate is 0
...
This allows to send a message exactly once if requested.
2020-06-03 17:57:12 +02:00
Julian Oes
bb032a9c46
mavlink: remove incorrect outdated comment
...
Default is -2, so the comments seems wrong.
2020-06-03 17:57:12 +02:00
Julian Oes
80f91b0f6a
mavlink: add support for legacy requests back in
2020-06-03 17:57:12 +02:00
Julian Oes
b4cbd93b7c
mavlink: new args to request message, omit param1
...
We can omit param1 because it is already used for the message_id, so
it's basically duplicate information and won't get used anywhere.
2020-06-03 17:57:12 +02:00
Julian Oes
27b6c209e0
mavlink: Move request message logic to function
2020-06-03 17:57:12 +02:00
David Jablonski
62bf0a6cf8
added streams to mavlink messages
2020-06-03 17:57:12 +02:00
David Jablonski
edbe7e3ef0
added FLIGHT_INFORMATION stream
2020-06-03 17:57:12 +02:00
David Jablonski
e1f4a70c0e
added AUTOPILOT_VERSION and PROTOCOL_VERSION streams
2020-06-03 17:57:12 +02:00
David Jablonski
aef2a5755e
moving storage_information stream to separate file
2020-06-03 17:57:12 +02:00
David Jablonski
9ce9fe38de
use storage_id 1
2020-06-03 17:57:12 +02:00
David Jablonski
fd09198c7e
implemented MAV_CMD_REQUEST_MESSAGE for STORAGE_INFORMATION
2020-06-03 17:57:12 +02:00
Daniel Agar
9e509a4bec
navigator: RTL minor whitespace and style fixes
2020-06-02 22:08:55 -04:00
Daniel Agar
aca6be8b5c
navigator: RTL destination throttle dataman access
2020-06-02 22:08:55 -04:00
Daniel Agar
11585dfb67
ekf2: decrease default GPS horizontal velocity noise
2020-06-02 08:18:12 -04:00
Dusan Zivkovic
08fdc90175
mission: keep current heading if close to ROI while heading sp is invalid
2020-06-02 12:04:23 +02:00
Daniel Agar
a9dacae57e
sensors/vehicle_angular_velocity: limit scheduling to IMU_GYRO_RATEMAX
2020-06-01 15:08:50 -04:00
Daniel Agar
96f043cd62
sensors/vehicle_acceleration: limit scheduling to IMU_INTEG_RATE
2020-06-01 15:08:50 -04:00
Daniel Agar
b36845330e
ms5611: prevent starting as ms5607 type on ms5611 hardware
...
- an ms5611 using the ms5607 calculations will return impossibly high barometric pressure (~2000 mbar)
2020-06-01 11:31:55 -04:00
Daniel Agar
b139f48fef
sensors: throttle mavlink emergency log messages
...
- in rare situations sending these messages multiple times in close succession can actually cause a loop of additional sensor timeouts
2020-06-01 11:25:12 -04:00
Daniel Agar
51a36f0b61
sensors/vehicle_imu: improve initial sensor interval monitoring
...
- add perf counters for monitoring
2020-05-31 21:41:37 -04:00
Daniel Agar
e34bdb4be9
move IMU integration out of drivers to sensors hub to handle accel/gyro sync
...
- IMU integration move from drivers (PX4Accelerometer/PX4Gyroscope) to sensors/vehicle_imu
- sensors: voted_sensors_update now consumes vehicle_imu
- delete sensor_accel_integrated, sensor_gyro_integrated
- merge sensor_accel_status/sensor_gyro_status into vehicle_imu_status
- sensors status output minor improvements (ordering, whitespace, show selected sensor device id and instance)
2020-05-30 11:07:54 -04:00
Beat Küng
43279f18ba
bmp388: fix variable shadowing warning
2020-05-29 09:54:18 -04:00
Dusan Zivkovic
1f57d63503
precland: set the previous position setpoint to invalid, in the position setpoint triplet
2020-05-29 09:18:43 +02:00
Dusan Zivkovic
7eee9deb4c
mission: handle precision landing inactivation properly
2020-05-29 09:11:01 +02:00
Dusan Zivkovic
a758ea1220
RTL: enable precision landing at the end of RTL, configurable by parameter
2020-05-29 09:11:01 +02:00
Dusan Zivkovic
ed9e504695
precland: add a method to check if precland is activated
2020-05-29 09:11:01 +02:00
TSC21
ad4d4287fa
mavlink odometry: properly set the frame id fields
2020-05-28 15:45:13 +01:00
TSC21
562d57fee8
mavlink: fix odometry frames of reference setup
2020-05-28 15:45:13 +01:00
Daniel Agar
0ec48cfef3
ekf2: increase default baro noise 2 -> 3.5 m
2020-05-28 08:35:07 -04:00
Beat Küng
07b39ec7c0
bmp388: some cleanup
...
- avoid unnecessary sensor readout cycle during init
- check status register for data ready
2020-05-28 08:34:38 -04:00
Hamish Willee
14853539e3
CBRK_FLIGHTTERM: Does not affect takeoff failure safety detection ( #14972 )
...
* CBRK_FLIGHTTERM: Clarify does not affect takeoff failure safety detection
* FD_FAIL_P FD_FAIL_R - clarify apply on takeoff
* Improve param text
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2020-05-28 08:30:48 +02:00
Pandacoolcool
664c79742b
navigator_main.cpp: don't reset wv enable status ( #14901 )
...
* navigator_main.cpp: don't reset wv enable status
* fix review
2020-05-27 15:49:04 +03:00
Daniel Agar
c0bf5cc94c
systemcmds/gpio: add module documentation
2020-05-27 07:35:27 +02:00
Daniel Agar
094fe269dc
systemcmds/gpio: move usage description to bottom and fix formatting
2020-05-27 07:35:27 +02:00
Matthias Grob
d92e66863a
mc_pos_control: migrate MPC_*_VEL_* parameter to acceleration scaling
...
Before #14212 the velocity control gains used in the multicopter
position controller were defined as a scale between velocity error in
one axis (or it's integral and derivative respectively) and the unit
thrust vector. The problem with this is that the normalization of the
unit thrust vector changes per vehicle or even vehicle configuration
as 0 and 100% thrust get a different physical response. That's why
the gains are now defined as scale between velocity error
(integral/derivative) and the output acceleration in m/s².
2020-05-26 14:44:41 +02:00
Matthias Grob
e482081f91
mc_att_control: grab attitude setpoint before processing estimate reset
2020-05-26 15:07:45 +03:00