DeepBlueRobotics/lib199

Limelight steeringAssist returns 0 if a target is not found

Closed this issue · 0 comments

adjustment = Math.signum(txDeg) * Math.min(Math.abs(adjustment), SmartDashboard.getNumber("Maximum Adjustment", 1.0));
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.