23095 Commits

Author SHA1 Message Date
Daniel Agar
7f2acb6d59
consume PX4 ecl submodule and preserve all history 2021-07-14 07:00:52 -04:00
Daniel Agar
18dcec43d3
github actions: add standalone ecl builds and testing 2021-07-13 19:01:19 -04:00
Oleg
a8bf8d42db sensors: add include for sensor_baro topic 2021-07-13 14:18:31 -04:00
Daniel Agar
06cd1c79dd logger: limit distance_sensor to 2 instances 2021-07-13 14:11:42 -04:00
Daniel Agar
dbaed99626
cmake remove git_ecl target 2021-07-13 10:03:06 -04:00
Daniel Agar
a5f7406211
Merge entire PX4/ECL submodule and history into PX4-Autopilot 2021-07-13 10:01:09 -04:00
Daniel Agar
cd1e04d034
delete ecl submodule 2021-07-13 09:54:02 -04:00
Oleg
76b34132a5 mavlink: fix incorrect rejection of forwarded alien commands 2021-07-12 10:34:43 +02:00
Oleg
76dedfec5d mavlink: optimize message forwarding 2021-07-10 12:04:17 -04:00
Daniel Agar
62144c6b6b optical_flow/paw3902: minor improvements
- configure a backup schedule when using motion interrupt otherwise the
sensor will stop publishing entirely in the dark
 - as a precaution issue full reset if sensor is stuck in a bad state
(no vaid data for an extended period)
 - update light mode change criteria to match datasheet exactly
2021-07-10 09:46:56 -04:00
Florian Achermann
d4ee5a52c9 Adjust lower bound for CAL_AIR_TUBED_MM to 1.5 mm
Below 1.5 mm the tube pressure drow compensation will result in unrealistic compensation factors causing the measured airspeed to be too high.
In addition sensirion recommends a diameter of 1.8 mm or larger for the tubes.
2021-07-09 16:10:21 +02:00
TSC21
e39e3b3418 events interface: chance uORB 'sequence' to 'event_sequence'
The reason is that sequence is an IDL reserved keyword, which results on failure when parsing with FastRTPSGen.
2021-07-09 13:24:13 +02:00
Paul Riseborough
223ca11aed ekf2: update drag fusion parameter descriptions 2021-07-08 22:19:52 -04:00
Paul Riseborough
2d6363e0ef ekf2: Add parameter for propeller momentum drag 2021-07-08 22:19:52 -04:00
Paul Riseborough
909326e9d8 ecl: use latest version with momentum drag fusion 2021-07-08 22:19:52 -04:00
Daniel Agar
c5b1fe86ca delete deprecated BAT_* parameters 2021-07-08 22:19:12 -04:00
Beat Küng
e644036325 drivers: use updated I2C SPI driver interface 2021-07-08 12:59:35 -04:00
Beat Küng
c5aef9d512 i2c_spi_buses: add support for multiple instances of the same device on a bus
This also simplifies the API a bit, since we anyway have to change the
drivers to pass additional information (the bus device index).

The orientation flag is merged with the rotation.
2021-07-08 12:59:35 -04:00
Daniel Agar
e4983ab88c
px4_platform_common: atomic support larger types with critical sections (on NuttX) 2021-07-08 10:56:25 -04:00
Igor Mišić
376450ccf0 navigator: reduce traffic alert messages 2021-07-08 07:28:38 +02:00
Sam Chamberlin
496e3fe2e0
afbr-s50: added gate for processing distance measurements
updating variable naming convention

publish data when measurements are invalid, just set them to zero

add quality to distance measurements
2021-07-07 21:40:29 -04:00
Beat Küng
e3972d563a cmake: ensure generated source files exist before extracting events
Only needed for Makefile-based builds:
gmake[3]: *** No rule to make target 'src/modules/flight_mode_manager/FlightTasks_generated.hpp', needed by 'events/px4.json'.  Stop.
2021-07-07 21:38:09 -04:00
Beat Küng
594f47c9f8 mission: switch to events 2021-07-07 21:38:09 -04:00
Beat Küng
38ee923658 px4io: switch to events 2021-07-07 21:38:09 -04:00
Beat Küng
7bb123c65e voted_sensors_update: switch to events 2021-07-07 21:38:09 -04:00
Beat Küng
ab701ae502 rtl: switch to events 2021-07-07 21:38:09 -04:00
Beat Küng
59f359f7dc events: add custom (px4-specific) enums json file 2021-07-07 21:38:09 -04:00
Beat Küng
38f3b8d356 mavlink & system: add events interface
- sending protocol
- uorb event message & template methods for argument packing
- libevents submodule to send common events and handle json files
- cmake maintains a list of all (PX4) source files for the current build
  (PX4 modules + libs), which is used to extract event metadata and
  generate a json file
2021-07-07 21:38:09 -04:00
mcsauder
fef2c43395 Modify occurrences of control_mode to vehicle_control_mode in MulticopterPositionControl.cpp/hpp to reflect the existing naming convention in the files. 2021-07-06 22:02:15 -04:00
Daniel Agar
1ee3484827 drivers/gps: close port if configure fails
- open if necessary at beginning of each iteration
2021-07-06 22:01:24 -04:00
JacobCrabill
3143756d97 uavcan_v1: Cleanup _uavcan_subs in SubMgr
Remove hard-coding of PX4 param names - use subject name and instance
instead

Also cleanup duplicates of CANARD_PORT_ID_UNSET/MAX vars
2021-07-06 22:00:07 -04:00
JacobCrabill
8f55c960b6 uavcan_v1: Change '_PID' params to '_SUB' for clarity 2021-07-06 22:00:07 -04:00
JacobCrabill
fce809841f uavcan_v1: Revert HeapSize to 8192 2021-07-06 22:00:07 -04:00
JacobCrabill
a644cf19c5 uavcan_v1: Update SubscriptionManager
Make _uavcan_subs struct 'const' again
Refactor updateDynamicSubscriptions()
Add getSubjectName(), getInstance() to BaseSubscriber class
2021-07-06 22:00:07 -04:00
JacobCrabill
ab46b8026c uavcan_v1: Don't re-subscribe to fixed port ID subscribers 2021-07-06 22:00:07 -04:00
JacobCrabill
a99b657f03 uavcan_v1: Fix SubscriptionManager dynamic update 2021-07-06 22:00:07 -04:00
JacobCrabill
db460daf46 uavcan_v1: Bugfix: pop timed-out transfers from tx queue 2021-07-06 22:00:07 -04:00
JacobCrabill
c9f743049b uavcan_v1: Increase _uavcan_heap size 2021-07-06 22:00:07 -04:00
JacobCrabill
4ba1f966e5 uavcan_v1: Add update and print support to SubscriptionManager 2021-07-06 22:00:07 -04:00
JacobCrabill
74d0f46279 uavcan_v1: Publisher: Fix port_id update 2021-07-06 22:00:07 -04:00
Daniel Agar
1b5e65df04
gyro_fft: change default length 1024 -> 512 to decrease latency
- change default FFT length (1024 -> 512)
      - this doubles the update rate because half the number of samples are required for each
 - decrease number of peaks (4 -> 3)
      - so far 3 seems to be sufficient on most vehicles
 - increase median filter window (3 -> 5)
 - decrease SNR requirement (likely needs to be configurable)
2021-07-06 21:54:18 -04:00
Oleg Evseev
f296a41737 cdev: fixes hardfaults when device get disconnected (#17846)
check if inode is not unlinked before use
2021-07-06 12:35:47 -04:00
Daniel Agar
a5ee28883a gyro_fft: track FFT peaks and median filter frequency 2021-07-06 12:32:25 -04:00
alexklimaj
72389c2306 Increase hp work priority. Turn on SPI2 DMA for AFBR. 2021-07-06 11:35:01 -04:00
Daniel Agar
9524e8ec03 drivers/px4io: mirror PWM_MAIN_OUT support 2021-07-05 21:23:04 -04:00
murata
c9b5e488f5 NCP5623C: Change the class name to the device name 2021-07-04 14:22:20 -04:00
Matthias Grob
acf848ba99 PWM: Draft implementation to respect PWM_OUT when loading defaults 2021-07-02 12:48:04 +02:00
Beat Küng
50b0f0e392 iridiumsbd: disable module until everything is fixed
There seem to be more issues in combination with MAVLink.
2021-07-02 12:45:18 +02:00
Beat Küng
fcf3bb5af9 fix iridiumsbd: use ModuleBase
fixes hardfaults, e.g. when device not connected
2021-07-02 12:45:18 +02:00
Peter van der Perk
cf524cd2c9 [UAVCANv1] Added uORB actuator_outputs publisher 2021-07-02 00:58:38 -04:00