mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 22:43:33 +08:00
uorb: allow for more than 255 uORB messages
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.
This commit is contained in:
@@ -88,7 +88,7 @@ public:
|
||||
RequestedSubscription sub[MAX_TOPICS_NUM];
|
||||
int count{0};
|
||||
|
||||
uint8_t excluded_optional_topic_ids[MAX_EXCLUDED_OPTIONAL_TOPICS_NUM];
|
||||
orb_id_size_t excluded_optional_topic_ids[MAX_EXCLUDED_OPTIONAL_TOPICS_NUM];
|
||||
int num_excluded_optional_topic_ids{0};
|
||||
};
|
||||
|
||||
|
||||
@@ -365,7 +365,7 @@ private:
|
||||
uint16_t _event_sequence_offset{0}; ///< event sequence offset to account for skipped (not logged) messages
|
||||
uint16_t _event_sequence_offset_mission{0};
|
||||
|
||||
uint8_t _excluded_optional_topic_ids[LoggedTopics::MAX_EXCLUDED_OPTIONAL_TOPICS_NUM];
|
||||
orb_id_size_t _excluded_optional_topic_ids[LoggedTopics::MAX_EXCLUDED_OPTIONAL_TOPICS_NUM];
|
||||
int _num_excluded_optional_topic_ids{0};
|
||||
|
||||
LogWriter _writer;
|
||||
|
||||
Reference in New Issue
Block a user