Repository navigation
Conversation
sysrsbuild-gh-agentic
left a comment
There was a problem hiding this comment.
Auto-generated review by rs-agentic bot. Two potential bugs found in the fallback profile selection logic.
|
Since getDefaultProfiles() sits on the base class, this changes VideoProfilesManager too. For an untagged video sensor with a single stream every fps bucket ties at size 1, so the default silently becomes the lowest fps the sensor offers rather than the first enumerated profile. Could we keep the base fallback as _all_profiles.front() and move the bucket logic into a virtual getFallbackProfiles() overridden in MotionProfilesManager? Same fix for motion, no blast radius on video. Last one: if accel and gyro share no rate at all, the loop returns one of them and the other keeps its own min, so we're back to mismatched rates at stream start with nothing in the log. A ROS_WARN when the result covers fewer streams than the sensor has would make that visible. 🤖 Generated by AI |
Nir-Az
left a comment
There was a problem hiding this comment.
Structure looks good now — base fallback is unchanged so the video path is untouched, and the shared-rate logic is confined to motion where it belongs. Only leftover is the non-blocking log suggestion above.
🤖 Generated by AI
Tracked on: [RSDEV-13629]