64void predict(
float dLocalX,
float dLocalY,
float dTheta);
Pose, sensor specs, and the global odometry / pose-estimation API.
Runtime tuning for LightCast (particle filter) and the EKF.
void startTask()
Spawn the 10 Hz LightCast update task.
void predict(float dLocalX, float dLocalY, float dTheta)
Propagate particles by a local-frame arc delta.
void update()
Measurement update: read sensors, weight particles, resample.
std::vector< DistanceSensorSpec > sensors()
Face
Robot-frame face that a distance sensor is mounted on.
void init(const Pose &initial, const std::vector< DistanceSensorSpec > &sensors, MCLConfig cfg={})
Initialize the particle filter.
uint32_t degenerateTickCount()
Number of ticks where the filter saw all-degenerate weights and reset to uniform (motion-model only).
void setConfig(const MCLConfig &cfg)
bool converged(float threshold_in=3.0f)
DistanceSensorSpec fromFace(pros::Distance *s, Face face, float along, float depth)
Convenience builder — derives angle from face, offsets from (along, depth).
Per-sensor mount configuration for LightCast's ray-cast sensor model.
Tuning knobs for the LightCast particle filter and the EKF.