Danny-Dunn / FRC-6978-rio

2 stars 0 forks source link

Drive to camera alignment #1

Open Danny-Dunn opened 3 years ago

Danny-Dunn commented 3 years ago

Branch: Alignment

Danny-Dunn commented 3 years ago

Code needs to be added here

It checks a flag set by button reading code in the RTDrive thread: if (RTDrive.alignEnabled) { It is set here in RTDrive.

Danny-Dunn commented 3 years ago

The variable RTDrive.aimInput(float) can be used to set the speed of drive motors. Giving this variable a value of 1.0 will set left drive to 1.0 and right drive to -1.0, similar to the way the X axis on driverStick works, just without the dead-zone/scaling.

Juiceman9001 commented 3 years ago

hemlo