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
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
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
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
795e000c2b
simulator: remove redundant semicolon
2020-03-18 17:57:41 +00:00
PX4 BuildBot
32a6a4e8d8
Update submodule ecl to latest Wed Mar 18 12:38:43 UTC 2020
...
- ecl in PX4/Firmware (e34351229b4d9de251c495ee49e7c709a93b2521): https://github.com/PX4/ecl/commit/f1aa53db8a8053e5f27a698084a7362f727ce375
- ecl current upstream: https://github.com/PX4/ecl/commit/ee5e3c479b85876dcb7bf451884e40c72a716fd7
- Changes: https://github.com/PX4/ecl/compare/f1aa53db8a8053e5f27a698084a7362f727ce375...ee5e3c479b85876dcb7bf451884e40c72a716fd7
ee5e3c4 2020-03-18 CarlOlsson - ekfgsf: fix formatting
f20fc08 2020-03-17 Mathieu Bresciani - ekf2: centralize mag covariance reset (#693 )
2020-03-18 12:39:33 -04:00
PX4 BuildBot
640c245c44
Update submodule devices to latest Wed Mar 18 12:38:39 UTC 2020
...
- devices in PX4/Firmware (5ba8a9f62ff93843185979b3881eb7125ffc42cc): https://github.com/PX4/GpsDrivers/commit/781d4f125580d88d24add83b97017e6d771d757f
- devices current upstream: https://github.com/PX4/GpsDrivers/commit/c25a8f22c43e22b7c23106470b08fb17678042ef
- Changes: https://github.com/PX4/GpsDrivers/compare/781d4f125580d88d24add83b97017e6d771d757f...c25a8f22c43e22b7c23106470b08fb17678042ef
c25a8f2 2020-03-16 Nicolas Martin - ubx: fix baud rate search
2020-03-18 12:05:16 -04:00
Julian Oes
3233e0794d
navigator: fix edge case with valid idle setpoint
...
This is an attempt to fix an edge case in the triplet publication which
can lead to crashes on autopilots with slow SD cards.
The sequence of events before this patch is:
1. Switch to POSCTL when disarmed. At this point current valid with
setpoint idle is published.
2. Arm, takeoff, and fly using joystick/RC.
3. Switch to RTL (or trigger RTL using RC loss). At this point the
setpoint is valid but still idle and the motors will shut off.
4. Once navigator has published the new setpoint (which can take up to
1.5 seconds on slow SD cards) we will hopefully recover.
With this patch we omit this edge case, so we never publish this idle
setpoint when landed. The assumption is that this idle setpoint is no
longer required with the current flight task code, however, that needs
to be further verified.
2020-03-18 10:50:03 -04:00
CarlOlsson
58ded8d4c0
ekf2: remove unused function declatation
2020-03-18 14:33:11 +01:00
Beat Küng
d6bb5b3b9e
i2c spi buses: enforce drivers to set default SPI/I2C bus frequency
...
Not a lot of drivers use the global default, which is somewhat arbitrary.
2020-03-17 23:31:17 -04:00
Beat Küng
8ebde51648
refactor hmc5883: use driver base class
...
Removes the calibration on startup, as these values were overwritten by
the system calibration values anyway.
So the only difference is that if all calibration scales were equal to 1,
the driver startup would have failed.
2020-03-17 23:31:17 -04:00
Beat Küng
8f3ba81c4a
refactor atxxxx: use driver base class
...
and increase update rate to 20Hz
2020-03-17 23:31:17 -04:00
Beat Küng
20db735d77
refactor ak09916: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
47b329cc54
refactor bmm150: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
e4bf535595
refactor bst telemetry: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
fb6ce09dc4
refactor pcf8583: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
bb4ff04caf
refactor irlock: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
1710cd9648
refactor px4flow: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
b6119c71df
refactor paw3902: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
82f92b56db
batt_smbus: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
ec2de33547
lights: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
692d262e0e
refactor voxlpm: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
832ccd262e
refactor ina226: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
d6b9cfa3e2
pga460: fix documentation
2020-03-17 23:31:17 -04:00
Beat Küng
68ef14002a
differential_pressure drivers: allow multiple instances of each driver
...
- the device path needs to be removed, as startup fails if it already
exists
- sdp3x broadcasts a reset on startup, so do it only for the first I2C
address
2020-03-17 23:31:17 -04:00
Beat Küng
3b7b2dc871
differential_pressure sensors: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
0924ff7fcf
refactor vl53lxx: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
83b367f000
refactor teraranger: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
5a26f06f8a
fix sf0x: check if device port is given
...
otherwise we risk dereferencing a null pointer
2020-03-17 23:31:17 -04:00
Beat Küng
bbe15aa61a
refactor srf02: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
a6ddf0e4b9
refactor sf1xx: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
f743585160
refactor mb12xx: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
7e3f40d1c2
refactor mappydot: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
1b1e1ba31f
refactor ll40ls: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
df99555132
refactor ll40ls: split I2C and PWM into separate drivers
...
- there was almost nothing shared
- it will fit better into the updated I2C driver structure
2020-03-17 23:31:17 -04:00
Beat Küng
081ab729aa
refactor lps25h: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
dc5ffb43a3
refactor mpl3115a2: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
d81fedfcfa
refactor lps22hb: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
83a3deb9da
refactor dps310: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
985bb2adc9
refactor bmp388: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
aeadf54a74
refactor bmp280: use driver base class
2020-03-17 23:31:17 -04:00