DeepBlueRobotics / lib199

Code that we reuse in different projects/years.
Other
2 stars 0 forks source link

Limelight steeringAssist returns 0 if a target is not found #12

Closed CoolSpy3 closed 3 years ago

CoolSpy3 commented 3 years ago

https://github.com/DeepBlueRobotics/lib199/blob/bf376375a22488cb5f56f7576bc40087cb752083/src/main/java/frc/robot/lib/Limelight.java#L184 The clipping applied to adjustment multiplies by signum(txDeg). However, while adjustment is set to 0.25 if tv==0, txDeg will be 0. Thus, adjustment becomes 0 not 0.25.