Late Brake - Racing Lap Data Analysis Skill
Late Brake is a pure command-line (CLI) racing lap data analysis tool that provides:
- - Import lap data in NMEA 0183 / RaceChrono VBO formats
- Auto split laps based on track start/finish line
- Compare any two laps for time/speed differences by sector and corner
- Output structured JSON comparison results ready for AI coach analysis
Dependencies
- - Python >= 3.10
- Dependencies: click, pydantic, numpy, geographiclib, jsonschema, wcwidth
Dependencies are declared in SKILL.md, OpenClaw will handle automatic installation.
Entry Points
Source code is directly in scripts/ directory, can be imported directly:
CODEBLOCK0
Or execute directly as command-line:
CODEBLOCK1
Features
| Feature | Command | Description |
|---|
| Load data file | INLINECODE1 | Parse data, auto split laps, list all detected laps |
| Compare two laps |
late-brake compare <file1> <lap1> <file2> <lap2> | Compare lap differences, output text table or JSON |
| Track management |
late-brake track list/info/add | Manage built-in/custom tracks |
JSON Output Schema
Full JSON schema definition: compare-json-schema.md
Use Cases
- - Racing drivers upload lap data files for comparison analysis
- AI racing coach needs structured comparison data to give advice
- Batch processing multiple lap data files
晚刹车 - 赛车圈速数据分析技能
晚刹车是一款纯命令行(CLI)赛车圈速数据分析工具,提供以下功能:
- - 导入NMEA 0183 / RaceChrono VBO格式的圈速数据
- 基于赛道起/终点线自动分割圈速
- 按赛段和弯道比较任意两圈的时间/速度差异
- 输出结构化JSON比较结果,可供AI教练分析
依赖项
- - Python >= 3.10
- 依赖库:click, pydantic, numpy, geographiclib, jsonschema, wcwidth
依赖项在SKILL.md中声明,OpenClaw将自动处理安装。
入口点
源代码直接位于scripts/目录下,可直接导入:
python
import sys
import os
SKILL_DIR = os.path.dirname(os.path.abspath(file))
sys.path.insert(0, os.path.join(SKILL_DIR, scripts))
from latebrake.cli import main as latebrake_main
或直接作为命令行执行:
bash
加载数据文件,列出所有圈速
python -m late_brake.cli load <文件> --json
比较两圈,输出JSON结果
python -m late_brake.cli compare <文件1> <圈速1> <文件2> <圈速2> --json
功能特性
| 功能 | 命令 | 描述 |
|---|
| 加载数据文件 | late-brake load <文件> | 解析数据,自动分割圈速,列出所有检测到的圈速 |
| 比较两圈 |
late-brake compare <文件1> <圈速1> <文件2> <圈速2> | 比较圈速差异,输出文本表格或JSON |
| 赛道管理 | late-brake track list/info/add | 管理内置/自定义赛道 |
JSON输出模式
完整JSON模式定义:compare-json-schema.md
使用场景
- - 赛车手上传圈速数据文件进行比较分析
- AI赛车教练需要结构化比较数据以提供建议
- 批量处理多个圈速数据文件