Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Main bot code #29

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Main bot code #29

wants to merge 13 commits into from

Conversation

Craftzman7
Copy link
Contributor

No description provided.

start()
}
return runEnd({
val setpoint = magnitude * sin(timer.get() / 2.0) + center
Copy link
Contributor

Choose a reason for hiding this comment

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

WTF is this? Deserves a comment to explain how giving a timer value to a sine function is used for a set point.

rightMotor.setPosition(position.`in`(Rotations))
}
inputs.reference = Rotations.of(leftMotor.closedLoopReference.value)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Given our history with getting funky encoder values we should be doing sanity checking here. Not only the encoder position but also the relative position and voltage.

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

Successfully merging this pull request may close these issues.

5 participants