Pid acc simulation

From XuShuwenn/RedAct · View interactive version

Pid acc simulation is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Design, implement, and validate an adaptive cruise control (ACC) simulation with PID control, mode logic, segmented metrics, and reproducible I/O.

How to use this skill

Skill file

PID-Based Adaptive Cruise Control Simulation

This skill provides a reusable workflow for building an ACC simulation that:

It distills robust patterns from multiple implementations, emphasizing anti-windup, mode-specific PID state handling, correct distance modeling, and stable metric definitions.

When to Use

Use this skill when you need to:

Core Workflow

1) Inspect inputs and configuration

2) Implement a robust PID controller

3) ACC mode logic (compute function)

4) Distance modeling in simulation

5) I/O and format guarantees

6) Metrics (segmented and stable)

Verification Checklist

Pre-simulation

Controller and mode logic

Simulation dynamics

Output format

Metrics

Common Pitfalls and Fixes

Optional Script Usage

This skill includes two helper scripts.

1) PID utility (scripts/pid.py)

2) Segmented metrics (scripts/segmented_metrics.py)

Adopt or adapt these scripts to your project; they are generic and configuration-driven.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.