Daniel Agar
7925787f62
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
4 years ago
Julian Oes
6cb0259b79
commander: improve progress output
...
Instead of outputting progress at weird percentages and dropping 100%,
this now sends the progress every 10 %.
4 years ago
Daniel Agar
ca685490a9
drivers/rc_input: only print vrssi if analog stable
4 years ago
Daniel Agar
15c01a9732
drivers/rc_input: flush buffers when beginning new scan state
4 years ago
Daniel Agar
a305fc9c34
drivers/rc_input: only invert RC when starting/ending SBUS
4 years ago
Daniel Agar
79703c9c7a
drivers/rc_input: don't resume scanning if armed
4 years ago
Daniel Agar
98f89aae9b
drivers/rc_input: always report new lock
4 years ago
Hylke Faas
34483aef0f
Do not resend a mission request if it is not the expected sequence number, this can cause an excessive increase of used bandwith ( #18082 )
4 years ago
Daniel Agar
a917793248
mavlink: only block parameter sync until boot complete
4 years ago
Daniel Agar
ab1c90d831
boards: cubeorange/cubeyellow use amber LED for armed state
4 years ago
Jukka Laitinen
c3c30e5d4f
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>
4 years ago
Daniel Agar
99463fce48
Update submodule mavlink v2.0 to latest Thu Aug 26 12:39:19 UTC 2021 ( #18153 )
...
- mavlink v2.0 in PX4/Firmware (c6a6403ce2
): 51204fc82b
- mavlink v2.0 current upstream: e0e24de622
- Changes: 51204fc82b...e0e24de622
Co-authored-by: PX4 BuildBot <bot@px4.io>
4 years ago
Daniel Agar
c6a6403ce2
px4io: increase stack 1500 -> 1536 bytes
4 years ago
Daniel Agar
f59b54abd7
boards: io-v2 increase idle thread stack 280 -> 316 bytes
4 years ago
Daniel Agar
22e62a044a
px4iofirmware: never directly touch mixer from isr
4 years ago
Jacob Crabill
1ee5f75aa5
uavcan_v1: Add PublicationManager and uORB Publisher ( #17863 )
4 years ago
Beat Küng
d8214f5e00
component_information: merge extra component_information_header target
...
With Makefile build, generate_component_general.py was called twice during
build, which did not happen with the ninja build.
This created a race condition with the following error in rare cases:
Traceback (most recent call last):
File "/__w/PX4-Autopilot/PX4-Autopilot/src/lib/component_information/generate_component_general.py", line 79, in <module>
save_compressed(filename)
File "/__w/PX4-Autopilot/PX4-Autopilot/src/lib/component_information/generate_component_general.py", line 33, in save_compressed
with open(filename, 'r') as content_file:
FileNotFoundError: [Errno 2] No such file or directory: '/__w/PX4-Autopilot/PX4-Autopilot/build/px4_sitl_default/component_general.json'
make[3]: *** [src/lib/component_information/CMakeFiles/component_information_header.dir/build.make:68: component_general.json] Error 1
Merging the targets avoids the duplicate execution.
4 years ago
Beat Küng
af53b60713
Revert "component_information: add debug instrumentation for FileNotFoundError exception"
...
This reverts commit ca454c93d1
.
4 years ago
Jukka Laitinen
8f03045fb2
Increase micrortps_client_rcv stack for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
4 years ago
Jukka Laitinen
69021dbafa
Increase navigator stack for 64-bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
4 years ago
Jukka Laitinen
e49791cdf2
Increase mavlink stack for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
4 years ago
Jukka Laitinen
523578d2ce
Increase stack size of wq:manager and worker threads for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
4 years ago
Jukka Laitinen
29248cb6b8
Increase gps stack for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
4 years ago
Jukka Laitinen
733b1e9e67
Increase logger stack size for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
4 years ago
Jukka Laitinen
8cf121fc9d
Increase dataman stack size for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
4 years ago
Kjersti Brynestad
62aa9c9f34
Correct conversion from sec to usec
4 years ago
Andrew Brahim
04adf6c9be
drivers/distance_sensor/vl53l1x: added multiple region of interest settings ( #18073 )
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com>
4 years ago
Daniel Agar
a4527485a3
mavlink: update radio status timestamp atomically
...
- this is updated by the mavlink rx thread, but checked in the tx thread
4 years ago
Daniel Agar
61702d0d97
sensors: always start baro/GPS/mag aggregators if SYS_HAS_* set
...
- add new SYS_HAS_GPS parameter
4 years ago
Thomas Stauber
6d3120d00d
lower case c in Quadchute
4 years ago
Thomas
a260ea8233
more consistent quadchute messages
4 years ago
Daniel Agar
2b1c97eb37
Update world_magnetic_model to latest Sun Aug 22 11:14:24 UTC 2021
4 years ago
Daniel Agar
60d50b9d5d
boards: px4_fmu-v6x_default disable batmon to save flash
4 years ago
David Sidrane
1339dd3681
px4_fmuv6x:Use parameter setting for ina22x
4 years ago
David Sidrane
f2925d234e
px4_fmuv5x:Use parameter setting for ina22x
4 years ago
David Sidrane
bf89771710
ina22x:Enabled by paramaters
4 years ago
David Sidrane
f820771ea2
px4_fmuv6x:Add INA228
4 years ago
David Sidrane
7e7cbceaea
px4_fmuv5x:Add INA228
4 years ago
David Sidrane
f819be2075
Support INA228
4 years ago
Beat Küng
fdb92d4746
protocol_splitter: check available bytes before read()
...
This is to avoid blocking in any case.
If we don't do that, ioctl() may signal data available while the other
protocol does a read(), and when the first protocol tries to do a read(),
it would not have data anymore and would block (so this avoids a race
condition).
4 years ago
Beat Küng
5d1e78befb
protocol_splitter: return correct FIONSPACE
...
This is now possible since we don't parse the protocol.
4 years ago
Beat Küng
6edb55c874
protocol_splitter: simplify write()
...
With the protocol header we don't need to parse the protocol anymore.
4 years ago
Beat Küng
868f9cebb0
protocol_splitter: return 0 when no data to read instead of -1
...
This avoids mavlink adding another usleep() due to read error
4 years ago
Beat Küng
375b014444
protocol_splitter: reduce poll timeout from 100ms to 10ms
...
This matches the timeout in mavlink_receiver.
With the higher timeout sending of e.g. mavlink logging was done at a lower
rate.
4 years ago
Beat Küng
00d939995b
fix micrortps_transport: set poll fd when baudrate is 0
4 years ago
Daniel Agar
0885f37667
micrortps_bridge: add "msg/tools/urtps_bridge_topics.yaml" to CMAKE_CONFIGURE_DEPENDS
...
- this is necessary because urtps_bridge_topics.yaml is processed at
cmake configure time (via cmake execute_process)
4 years ago
Daniel Agar
4422030037
micrortps_bridge/micrortps_client: fix topic path dependencies
4 years ago
Christian Llanes
c0efbe1f9c
change PublicationMulti-> Publication as a temporary fix
4 years ago
David Sidrane
376b1c9987
rgbled_ncp5623c:Add comand line mapping of PWM to color
4 years ago
David Sidrane
8e04985940
rgbled_ncp5623c:Needs 2 retries
4 years ago