Config

data class Config(var kP: Double = 0.04, var kI: Double = 0.0, var kD: Double = 0.004, var maxRotationSpeed: Double = 0.5, var minRotationSpeed: Double = 0.03, var deadband: Double = 1.0, var fieldOriented: Boolean = true, var stopIfNoTarget: Boolean = false)

Configuration for target tracking.

Constructors

Link copied to clipboard
constructor(kP: Double = 0.04, kI: Double = 0.0, kD: Double = 0.004, maxRotationSpeed: Double = 0.5, minRotationSpeed: Double = 0.03, deadband: Double = 1.0, fieldOriented: Boolean = true, stopIfNoTarget: Boolean = false)

Properties

Link copied to clipboard

Deadband for target offset to avoid oscillation.

Link copied to clipboard

Whether to use field-oriented control for translation.

Link copied to clipboard
var kD: Double

Derivative gain for PID controller.

Link copied to clipboard
var kI: Double

Integral gain for PID controller.

Link copied to clipboard
var kP: Double

Proportional gain for PID controller.

Link copied to clipboard

Maximum rotation speed (0.0 to 1.0).

Link copied to clipboard

Minimum rotation speed to overcome friction.

Link copied to clipboard

Whether to stop the robot if no target is visible.