Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uorb: allow for more than 255 uORB messages #21923

Merged
merged 2 commits into from Aug 8, 2023
Merged

Conversation

bkueng
Copy link
Member

@bkueng bkueng commented Aug 4, 2023

Replaces #20637

@hskrieg thanks for your efforts, I'm continuing your PR here. I had to adjust the DDS code a bit (see 2. commit).
I also dropped some of the logger changes as they're not necessary.

Resource usage stays the same (flash, RAM and CPU load).

hskrieg and others added 2 commits August 4, 2023 08:58
Increased size for ORB_ID from uint8_t to uint16_t

Created a type: orb_id_size_t = uint16_t.
There are still a couple of places where the size
of the ORB_ID is assumed to be less than 16-bits.
The places that I have found are commented regarding
this and can be found with a search on orb_id_size_t.
@junwoo091400 junwoo091400 added uORB Maintainers call Add items that should be discussed in the weekly maintainers call! labels Aug 4, 2023
@bkueng bkueng merged commit 02a6640 into main Aug 8, 2023
84 of 86 checks passed
@bkueng bkueng deleted the uorb_max_num_topics_increase branch August 8, 2023 08:59
@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/more-than-256-uorb-topics/30002/4

@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-uorb-message-id-capped-at-255/29597/2

@hamishwillee
Copy link
Contributor

FYI The limitation wasn't documented, so no docs update. But @junwoo091400 you might consider updating https://px4.io/px4-uorb-explained-part-1/ :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintainers call Add items that should be discussed in the weekly maintainers call! uORB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants