You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Arm system is designed to set to a ceratin angle in order to shoot from different distances.
Thus, in the constructor, we'll get an angle(starting anle)-make sure to update it in the initialize.
In a addition, we'll be using;
two neo 500 motors
two SparkMax controllers-master and follower
It should contain 1 Action ; SetAngle
The action will get an angle we want the arm to get to, and use PID in order to get to it.
The DutyCycleEncoder returns its absolute position in values between -1.0 -> 1.0. You need to multiply the value by 360 degrees when returning it in the getAngle2Target() method.
We wish to specify the zero angle as the horizontal position of the Arm. Thus, it is necessary to find the Arm's offset angle. In the DutyCycleEncoder class, read about returning the absolute position when taking the offset angle into consideration.
The "move" and "speed" methods should receive desired angle and act according to that angle.
Make an Action to make the Arm move to an specific angle (receive the angle in the constructor).
Create two constants of angles, one for the "speaker" and the other for the "amp". When we get very close to the target, the angles will be employed in case the vision processing fails. Verify the necessary angles.
When using the Arm, we wish to make it stay in the same angle for a while (for shooting etc). Think of a way of doing that. PID? Constant low speed for a short time? A defaultAction?
The Arm system is designed to set to a ceratin angle in order to shoot from different distances.
Thus, in the constructor, we'll get an angle(starting anle)-make sure to update it in the initialize.
In a addition, we'll be using;
It should contain 1 Action ; SetAngle
The action will get an angle we want the arm to get to, and use PID in order to get to it.
For any questions, you're more than welcome to write any of us- @tomtzook @Maayan-Luzon @NoamZW
Once you've finished, commit and push, and update me(whatapp).
Good luck
The text was updated successfully, but these errors were encountered: