35723 Commits

Author SHA1 Message Date
Daniel Agar
2e8918da66
boards: cubepilot_cubeorange only start ADSB mavlink if console not present
- cubepilot_cubeorange_test has the console enabled (used for test rack and bench debugging)
v1.12.3
2021-09-06 11:57:42 -04:00
Daniel Agar
5def17b1af
Jenkins: hardware remove boards that aren't present 2021-09-06 10:28:52 -04:00
Daniel Agar
1daf0654ff
boards: px4_fmu-v5_opitmized disable unused modules to save flash 2021-09-06 10:28:17 -04:00
Daniel Agar
6e3a2314cb
boards: px4_fmu-v2_default disable systemcmds/top to save flash 2021-09-06 10:26:49 -04:00
Sander Swart
6121b287f1
Removed TEL3 from cube orange default.cmake as it is used for the built in ADS-B receiver 2021-09-06 10:24:43 -04:00
Sander Swart
c0980bd273
Added new line at the end of the file as per code style 2021-09-06 10:24:38 -04:00
Sander Swart
42d14e6072
Enable Cube Orange built in ADS-B receiver by default 2021-09-06 10:24:34 -04:00
Daniel Agar
ba0b512f0d
boards: Holybro H7 boards clear MPU early in board init
- needed if the bootloader configures the memory protection unit (MPU)
v1.12.2
2021-08-31 18:01:06 -04:00
Daniel Agar
7476a2953e
boards: CUAV H7 boards clear MPU early in board init
- needed if the bootloader configures the memory protection unit (MPU)
2021-08-31 17:59:34 -04:00
Lorenz Meier
15e6ca9e1e
MRO: Set up MPU after boot to app
This is needed in case the bootloader configured the MPU, which could interfere with the app as the bootloader memory map / configuration is different.
2021-08-31 17:57:23 -04:00
Daniel Agar
b9e7063237
boards: cube orange fully clear any existing MPU configuration as soon as possible 2021-08-31 17:56:23 -04:00
Daniel Agar
0a6045367f
px4io_serial: ensure TX DMA is stopped if exiting early on stream error
- otherwise the next retry can happen quickly enough that dma setup
hangs waiting for the stream
2021-08-31 17:56:00 -04:00
Daniel Agar
3f88a6d0bf
boards: cubeorange/cubeyellow use amber LED for armed state 2021-08-29 21:31:21 -04:00
Jukka Laitinen
d1c09ec358
Fix memory corruption when work queue is being deleted
When the last WorkItem is deleted, it is removed from a work queue and the
queue is being stopped. But, the queue itself might get deleted in the middle,
in a higher priority thread than where the WorkItem deletion was performed from

If the WorkQueue::Detach accesses the member variables after this, there is memory
corruption

This happens in particular when launching i2c or spi devices in
I2CSPIDriverBase::module_start:

- The "initializer" is deleted when the instance is not found and the iterator
  while loop continues.
- The workqueue is deleted in the middle of "initializer" deletion when the
  WorkQueueRunner returns.

This prevents deletion of the WorkQueue before the Detach has been finished,
in the specific case that the ::Detach triggers the deletion

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-08-29 21:31:12 -04:00
Daniel Agar
ca744626cd boards: io-v2 increase idle thread stack 280 -> 316 bytes 2021-08-26 23:57:10 -04:00
Daniel Agar
ea577f15b9 px4iofirmware: never directly touch mixer from isr 2021-08-26 23:57:10 -04:00
Daniel Agar
d9f3c820ab sensors: always start baro/GPS/mag aggregators if SYS_HAS_* set
- add new SYS_HAS_GPS parameter
2021-08-23 14:14:27 -04:00
David Sidrane
8e57a62c9d rgbled_ncp5623c:Add comand line mapping of PWM to color 2021-08-21 11:52:15 -04:00
David Sidrane
b961f6a1e1 rgbled_ncp5623c:Needs 2 retries 2021-08-21 11:52:15 -04:00
David Sidrane
09140c01bf rgbled_ncp5623c:Can change address, return actual 2021-08-21 11:52:15 -04:00
David Sidrane
822ae46235 rgbled_ncp5623c:Document support for ncp5623[c|b] parts 2021-08-21 11:52:15 -04:00
David Sidrane
f70381dfdd i2c_spi_buses:Support devices that may change address 2021-08-21 11:52:15 -04:00
David Sidrane
84066f574d vcm1193l:Bug Fix set default address 2021-08-21 11:52:15 -04:00
David Sidrane
c8426da50d px4_fmu-v5x:Newer HW Start BARRO on bus 2 2021-08-21 11:52:15 -04:00
David Sidrane
6bab917a3d px4_fmu-v6x:Use HB 10pin GPS rotation 2021-08-21 11:52:15 -04:00
David Sidrane
531301e176 px4_fmu-v5x:Use HB 10pin GPS rotation 2021-08-21 11:52:15 -04:00
David Sidrane
04f4157828 rcS:Scope netman to all 5X and 6X 2021-08-21 11:52:15 -04:00
Daniel Agar
c5f82ed838
ekf2: fix sensor_combined last_generation 2021-08-12 10:03:25 -04:00
Daniel Agar
99501b4c38
flight_mode_manager: ManualAcceleration support weathervane yaw handler
- fixes https://github.com/PX4/PX4-Autopilot/issues/17911
2021-08-12 10:02:13 -04:00
Daniel Agar
9e4a04f58a
mavlink: receiver fix HIL_STATE_QUATERNION map projection init
- fixes https://github.com/PX4/PX4-Autopilot/issues/17977
2021-08-02 09:59:41 -04:00
Daniel Agar
1682fd5671
boards: px4_fmu-v2 disable load_mon module to save flash v1.12.1 2021-08-01 13:51:11 -04:00
bresch
a8572f0fdd
ECL: update to include latest bugfixes
- fix yaw spin on ground after large mag field change
- change covariance prediction for better stability
- fix yaw alignment in air for mag-less mode
- improve tilt alignment for non-static applications
- add momentum drag model
2021-08-01 12:54:15 -04:00
Daniel Agar
a299a3bbd0
sensors: populate sensors_status_imu healthy flags even in multi-EKF mode 2021-08-01 12:54:08 -04:00
Julian Oes
349dd63072
mavlink: fix offboard velocity input
This reverts the behavior for offboard velocity setpoint.

Back in v1.11, the velocity input in NED_BODY was assumed to be in the
world frame but rotated by yaw to the vehicle frame. With the current
state the frame is completely fixed to the body. While this might be
technically correct, it doesn't seem much intuitive for multicopters
and breaks the MAVSDK offboard velocity API.

So as an example, with a velocity setpoint of 5 m/s forward, the drone
would in
- v1.11: fly forward with 5 m/s
- v1.12: start to fly forward by pitching down but then descend rapidly
  as the forward velocity would translate to a setpoint in Z into the
  ground as it is pitched down.

This commit restores the behavior to what we had previously.
2021-07-22 22:09:56 -04:00
David Sidrane
6b51c6390a
Revert "nxp_fmuk66-v3:DMA Poll not needed"
This reverts commit 962f02220a851b78b3fab73038f03e06f3bb518f.
2021-07-22 22:08:18 -04:00
David Sidrane
4f7909ee8e
Revert "nxp_fmuk66-e:DMA Poll not needed"
This reverts commit 39d684958d78fc619a87ac2b130117e0bcc36a1b.
2021-07-22 22:08:11 -04:00
David Sidrane
cbb48f9af3
NuttX with Kinetis SerialPoll back in 2021-07-22 22:08:04 -04:00
Daniel Agar
9524e8ec03 drivers/px4io: mirror PWM_MAIN_OUT support v1.12.0 v1.12.0-rc1 2021-07-05 21:23:04 -04:00
Daniel Agar
6dd0a58302 [at24c] free perf counter if px4_at24c_initialize fails
- add driver prefix to perf counter naming
2021-07-05 21:22:08 -04:00
murata
c9b5e488f5 NCP5623C: Change the class name to the device name 2021-07-04 14:22:20 -04:00
David Sidrane
9dee09b81b NuttX and Apps updated w/ALL backports 2021-07-02 09:08:10 -07:00
David Sidrane
962f02220a nxp_fmuk66-v3:DMA Poll not needed 2021-07-02 09:08:10 -07:00
David Sidrane
39d684958d nxp_fmuk66-e:DMA Poll not needed 2021-07-02 09:08:10 -07:00
David Sidrane
2a7c95d7ac nxp_fmuk66-v3:Use eDMA 2021-07-02 09:08:10 -07:00
David Sidrane
cd8182ba3c nxp_fmuk66-e:Use SPI DMA 2021-07-02 09:08:10 -07:00
David Sidrane
5ea4b7dc9e NuttX with Kinetis eDMA (SPI, Serial) Backports 2021-07-02 09:08:10 -07: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
Beat Küng
9b7170551c ModuleBase: allow configurable timeout for wait_until_running() 2021-07-02 12:45:18 +02:00