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

ManualFeedbackTuner Help #467

Open
KavinSandking opened this issue Dec 29, 2024 · 3 comments
Open

ManualFeedbackTuner Help #467

KavinSandking opened this issue Dec 29, 2024 · 3 comments

Comments

@KavinSandking
Copy link

KavinSandking commented Dec 29, 2024

RR FTC Version

1.0

Observed Behavior

when doing the manualFeedbackTuner, we noticed that the blue line (our robot), was moving in circles on FTC dashboard, but was moving in a straight line in real life. We thought nothing of it, until, when doing the splineTest, where the robot, would not move in a proper spline, and on FTC dash, it showed the robot was moving in circles.
WhatsApp Image 2024-12-29 at 15 55 53_c68d2cea

Tuning Files

Here are our tuning Parameters:
public double inPerTick = 0.0078482668410726;
public double lateralInPerTick = 0.0056539876547029525;
public double trackWidthTicks = 5312.21846717282;

    // feedforward parameters (in tick units)
    public double kS = 1.3154929873010737;
    public double kV = 0.0005363938203611571;
    public double kA = 0.0001;

public double par0YTicks = -1293.4791037362538; // y position of the first parallel encoder (in tick units)
public double par1YTicks = -1386.7924521981524; // y position of the second parallel encoder (in tick units)
public double perpXTicks = -1580.0543216662177; // x position of the perpendicular encoder (in tick units)

Robot Logs

No response

@rbrott
Copy link
Member

rbrott commented Dec 30, 2024

Your localization is bad as you've diagnosed, and you should revisit that part of the tuning instructions.

@KavinSandking
Copy link
Author

We redid all the tuning instructions, and the manualFeedBackTuner was working better, the problem was that the axial, heading, and lateral gains would go into the negatives. Even if the robot was going straight in the field, the field diagram would show that robot was not moving in a straight line.

@KavinSandking
Copy link
Author

Sometimes, the robot would follow the straight path in FTC Dashboard, but after going back and forth 2 times, it would suddenly turn.

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

2 participants