CoastingDetectorAnalyzer - Circuit Session - Lime Rock MX-5
Coasting detection: time spent on neither throttle nor brake
Sample Data
| Attribute | Value |
|---|---|
| Source | garage61 |
| Category | circuit_lap |
| File | 01K451BYJ64G0T2GPQ44AKXC86 |
Available Channels: LongAccel, VertAccel, YawRate, abs_active, brake, clutch, drs_active, gear, lap_distance_pct, lat_accel, latitude, longitude, position_type, rpm, speed, speed_kph, speed_mph, steering, throttle, time, track_pct, yaw
Configuration
| Setting | Value |
|---|---|
| Slice Type | lap |
| Metadata Only | False |
| Required Channels | throttle, brake, time |
When to Use
- User asks about pedal control or coasting
- User wants to know if they're maintaining car control
- User asks 'am I coasting too much?'
- User wants to improve weight transfer management
Key Options
| Option | Description |
|---|---|
lap_selection | all |
throttle_threshold | Threshold below which throttle is 'off' (default: 0.05) |
brake_threshold | Threshold below which brake is 'off' (default: 0.05) |
Sample Output
Subjects Analyzed: 1
Short Duration (Default)
Options: min_coast_duration_seconds=0.1
{
"metrics": [
{
"subject_id": "01K451BYJ64G0T2GPQ44AKXC86",
"driver_name": "Marcel Hild",
"coasting_pct": 0.04145785876993166,
"coasting_event_count": 24,
"total_coasting_time_seconds": 11.517129339642306,
"avg_coast_duration_seconds": 0.47988038915176273,
"max_coast_duration_seconds": 3.3672609393030974,
"control_score": 0.9170842824601366,
"coasting_pct_formatted": "4.1%",
"control_score_formatted": "92%"
}
],
"coasting_events": {
"01K451BYJ64G0T2GPQ44AKXC86": [
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.21430155088541203,
"start_speed_kmh": 52.8381,
"end_speed_kmh": 49.382095
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.1333862239773742,
"start_speed_kmh": 30.760166,
"end_speed_kmh": 30.468023
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.7502975098727322,
"start_speed_kmh": 33.123657,
"end_speed_kmh": 31.84871
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.21675261396323542,
"start_speed_kmh": 31.046526,
"end_speed_kmh": 30.710634
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 1.7673674677002147,
"start_speed_kmh": 34.66464,
"end_speed_kmh": 31.905224
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.2334258919604082,
"start_speed_kmh": 29.540089,
"end_speed_kmh": 29.026936
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.3501388379406123,
"start_speed_kmh": 39.40403,
"end_speed_kmh": 38.82638
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.3167922819462632,
"start_speed_kmh": 37.705723,
"end_speed_kmh": 37.001183
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.1500595019745461,
"start_speed_kmh": 36.05124,
"end_speed_kmh": 35.671364
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.15001511396810585,
"start_speed_kmh": 30.767805,
"end_speed_kmh": 30.360298
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.5667237638795104,
"start_speed_kmh": 35.16666,
"end_speed_kmh": 33.615974
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.15001511396810585,
"start_speed_kmh": 31.780546,
"end_speed_kmh": 31.331415
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.5000503798936862,
"start_speed_kmh": 38.647236,
"end_speed_kmh": 37.68373
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.11668861217826176,
"start_speed_kmh": 33.066044,
"end_speed_kmh": 32.757923
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.23340860002159047,
"start_speed_kmh": 30.98573,
"end_speed_kmh": 30.629086
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.2667526857389646,
"start_speed_kmh": 39.94275,
"end_speed_kmh": 39.201588
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.16669608610411313,
"start_speed_kmh": 30.880774,
"end_speed_kmh": 30.649418
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.7834716046893355,
"start_speed_kmh": 31.738926,
"end_speed_kmh": 30.542732
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 3.3672609393030974,
"start_speed_kmh": 34.200695,
"end_speed_kmh": 29.676092
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.4667490410915178,
"start_speed_kmh": 29.193277,
"end_speed_kmh": 28.66581
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.11668726027287946,
"start_speed_kmh": 43.484333,
"end_speed_kmh": 43.23713
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.20003530332493824,
"start_speed_kmh": 21.370762,
"end_speed_kmh": 20.955086
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.18336569471452435,
"start_speed_kmh": 36.113857,
"end_speed_kmh": 35.843933
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.1166872602728759,
"start_speed_kmh": 33.446884,
"end_speed_kmh": 33.205593
}
]
},
"metadata": {
"analyzer": "coasting_detector",
"title": "Coasting Detection",
"subjects_analyzed": 1
}
}
Metrics Summary
| Metric | Value |
|---|---|
| Subject: 01K451BYJ64G0T2GPQ44AKXC86 | Marcel Hild |
Longer Duration
Options: min_coast_duration_seconds=0.3
{
"metrics": [
{
"subject_id": "01K451BYJ64G0T2GPQ44AKXC86",
"driver_name": "Marcel Hild",
"coasting_pct": 0.04145785876993166,
"coasting_event_count": 9,
"total_coasting_time_seconds": 8.86885182631697,
"avg_coast_duration_seconds": 0.9854279807018855,
"max_coast_duration_seconds": 3.3672609393030974,
"control_score": 0.9170842824601366,
"coasting_pct_formatted": "4.1%",
"control_score_formatted": "92%"
}
],
"coasting_events": {
"01K451BYJ64G0T2GPQ44AKXC86": [
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.7502975098727322,
"start_speed_kmh": 33.123657,
"end_speed_kmh": 31.84871
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 1.7673674677002147,
"start_speed_kmh": 34.66464,
"end_speed_kmh": 31.905224
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.3501388379406123,
"start_speed_kmh": 39.40403,
"end_speed_kmh": 38.82638
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.3167922819462632,
"start_speed_kmh": 37.705723,
"end_speed_kmh": 37.001183
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.5667237638795104,
"start_speed_kmh": 35.16666,
"end_speed_kmh": 33.615974
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.5000503798936862,
"start_speed_kmh": 38.647236,
"end_speed_kmh": 37.68373
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.7834716046893355,
"start_speed_kmh": 31.738926,
"end_speed_kmh": 30.542732
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 3.3672609393030974,
"start_speed_kmh": 34.200695,
"end_speed_kmh": 29.676092
},
{
"start_distance_m": 0.0,
"end_distance_m": 0.0,
"duration_seconds": 0.4667490410915178,
"start_speed_kmh": 29.193277,
"end_speed_kmh": 28.66581
}
]
},
"metadata": {
"analyzer": "coasting_detector",
"title": "Coasting Detection",
"subjects_analyzed": 1
}
}
Metrics Summary
| Metric | Value |
|---|---|
| Subject: 01K451BYJ64G0T2GPQ44AKXC86 | Marcel Hild |
Example Calls
Am I coasting too much
analyze(analyzers='coasting_detector', event='...')
Detects time spent on neither pedal
Generated from b4racing.analysis.analyzers.coasting_detector.CoastingDetectorAnalyzer