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

Changed timing of actuator_controls_0 message from rover_pos_control #12519

Merged
merged 2 commits into from
Jul 25, 2019

Conversation

AmeliaEScott
Copy link
Contributor

@AmeliaEScott AmeliaEScott commented Jul 19, 2019

Describe problem solved by the proposed pull request
The rover_pos_control module was publishing actuator_controls_0 messages at a constant 250Hz, independent of any polling on any other UOrb topic. This was causing issues with Gazebo where it would get slightly out of sync with sensor readings. Closes #12490

Test data / coverage
Ran several missions in Gazebo.

Describe your preferred solution
Changed rover_pos_control to poll on sensor_combined to time the publication of actuator_controls_0. This sensor data is not actually used, it is only necessary for timing.

julianoes
julianoes previously approved these changes Jul 22, 2019
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice looks correct.

if (pret == 0) {
if (fds[2].revents & POLLIN) {

orb_copy(ORB_ID(sensor_combined), _sensor_combined_sub, &_sensor_combined);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit silly but it works 😄

@AmeliaEScott AmeliaEScott marked this pull request as ready for review July 23, 2019 09:27
@AmeliaEScott AmeliaEScott requested a review from julianoes July 23, 2019 09:27
@dagar dagar merged commit 57352ae into PX4:master Jul 25, 2019
@AmeliaEScott AmeliaEScott deleted the pr-rover-ci-fix branch July 26, 2019 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Rover 🚙 Rovers and other UGV
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rover SITL test failing
3 participants