acmerobotics / road-runner-quickstart

FTC quickstart for https://github.com/acmerobotics/road-runner
BSD 3-Clause Clear License
168 stars 856 forks source link

RoadRunner Manual Feedback Tuner Issue (1.0.x Beta) #303

Closed cougar15 closed 7 months ago

cougar15 commented 7 months ago

Hello, I am in team 19890. We are using version 1.0.x Beta of RoadRunner and are running into a problem when we are using the Manual Feedback Tuner. We are using mecanum drive with three dead wheels. Everything was running smoothly before this and the localization test works perfectly. For some reason, the robot is going forward and then starts strafing left and back. We are not sure why this is happening, and have tried changing the different gains to fix the problem, bit this did not work. Others we have asked have only used the last version, but we would prefer using the new version. We greatly appreciate any help! Thank you. -Team 19890

rbrott commented 7 months ago

Can you please retrieve robot logs? (see http://localhost:1313/docs/v1-0/tuning/#getting-help)

cougar15 commented 7 months ago

Hello, Thanks for replying. The robot logs are attached and so is the robot movement video. Thank you!

2023_11_20__15_51_15_630__ManualFeedbackTuner.log

rbrott commented 7 months ago

The estimated heading is clearly vary much more than it should: visualization(1) Hard to know whether it's the cause or just a symptom (another reason to consider removing any effect of estimated pose on feedforward computation). I assume the the large movements in the middle are from user intervention, and the odd stabilization close to 90deg is affected by some wheel slip. Does the situation improve when you start increasing headingGain?

cougar15 commented 7 months ago

Hello, I didn't intervene with the robot while it was moving, but I did notice the wheels slipping a bit. I will test increasing headingGain and will let you know what happens. Thank you! -Team 19890

AwesomePerson01 commented 7 months ago

Hi! We increased the headingGain and the robot started turning instead of strafing back and forth.
The logs are attached below Thanks!

-Team 19890

2023_11_21__16_07_42_958__ManualFeedbackTuner.log

rbrott commented 7 months ago

If you didn't intervene and the heading spike like that, something is seriously wrong. Is it possible that someone swapped the encoders on the bot or something like that? I would run AngularRampLogger again and see if the wheel positions have changed.

AwesomePerson01 commented 7 months ago

All of the deadwheel positions stayed basically the same, except for par0, which changed from 1048.246580934229 to 33.76369003638886. Do you know why this is happening?
Thanks, -Team 19890

rbrott commented 7 months ago

Does that result match the IRL configuration (that is, the first parallel wheel is much closer to the center of the robot than the second parallel wheel)? Probably worth making sure that the encoders don't need to be swapped.

cougar15 commented 7 months ago

When we tried retuning, we got values for the localization that seemed right. However now, the robot seems to move randomly when we run the manual feed back tuner. We swapped the encoders sometime ago, and that helped then, but it isn't doing anything now. When we do increase the heading gain, it doesn't help. What should we do now? Thank you for any help!

AwesomePerson01 commented 7 months ago

Hi, we tried running the angular ramp logger, and everything seems to be normal except for par0. This is the regression graph we got for it. Should this be happening?

Untitled

Thanks, -Team 19890

cougar15 commented 7 months ago

Hello, We have figured out the problem and have fixed it. The dead wheel was slipping, but we remounted it. Thank you for all your help!