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

Exit conditions don't seem to work #101

Closed
ssejrog opened this issue Jun 1, 2024 · 0 comments
Closed

Exit conditions don't seem to work #101

ssejrog opened this issue Jun 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ssejrog
Copy link
Member

ssejrog commented Jun 1, 2024

Expected Behavior

The code below should modify the turn exit conditions to take 10 seconds to exit.

void default_constants() {
  chassis.pid_heading_constants_set(3, 0, 20);
  chassis.pid_drive_constants_set(10, 0, 100);
  chassis.pid_turn_constants_set(3, 0, 20);
  chassis.pid_swing_constants_set(5, 0, 30);

  chassis.pid_turn_exit_condition_set(300_ms, 3_deg, 10_s, 7_deg, 10_s, 10_s);
  chassis.pid_swing_exit_condition_set(300_ms, 3_deg, 500_ms, 7_deg, 750_ms, 750_ms);
  chassis.pid_drive_exit_condition_set(300_ms, 1_in, 500_ms, 3_in, 750_ms, 750_ms);

  chassis.slew_drive_constants_set(7_in, 80);
}

Actual Behavior

It does not ;(

@ssejrog ssejrog added the bug Something isn't working label Jun 1, 2024
@ssejrog ssejrog self-assigned this Jun 1, 2024
@ssejrog ssejrog closed this as completed Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant