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

Can't change speed parameters for SITL Rover #147

Open
compadrejavo opened this issue Jul 30, 2020 · 1 comment
Open

Can't change speed parameters for SITL Rover #147

compadrejavo opened this issue Jul 30, 2020 · 1 comment

Comments

@compadrejavo
Copy link

Greetings, I have been working with SITL for rover 2.50 and everything works fine except for the speed control, the simulated rover always goes up to 5m/s regardless of what I do.
The things I have already tried:

  • I used the command vehicle.groundspeed = 1 but nothing happened.

  • I tried changing the parameters directly with vehicle.parameters[SPEED_MAX]=1 and vehicle.parameters[WP_SPEED]=1, but I get the message ERROR:dronekit:timeout setting parameter SPEED_MAX to 1.00000 for both parameters. I can change other parameters not speed related without issue.

  • I edited the speed on the default.parm file on sitl/rover-2.50, but nothing changed.

  • I edited the rover.py file on dist-packages/dronekit_sitl/pysim, but nothing changed.

  • I switched to copter and the commands worked fine there.

I don't know what else I could change to reduce the max speed, I would really appreciate some help solving this issue, thanks in advance.

@compadrejavo
Copy link
Author

Ok, I found how to solve it, I had to tweak the maximum throttle of the rover to reach the desired speed, the parameter that must be edited is vehicle.parameters[THR_MAX]=10, the default was 100 and 10 gave me the speed I needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant