This repository was archived by the owner on Oct 28, 2026. It is now read-only.
Repository navigation
car_cluster: drive a ten mile figure eight out of the driveway and back - #238
Merged
Merged
Conversation
The car now follows a course instead of a speed profile: two stacked blocks, 1.5 by 1.0 miles each, ten miles round. It backs out of a driveway on the shared middle street, takes every corner to the left, runs the top road at 55 in S, stops at the stop signs on the top-left and bottom-right corners, signals before each corner and the driveway, brakes with regen the way a driver would, and parks. The lap distance is the left dial's caption and resets as the car pulls back in. Ten seconds of driving pass for each real one (CAR_CLUSTER_SPEEDUP), so a lap is about two minutes. The status line shows today's date and 75 F; the indicators blink on the real clock, not the sped-up one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The car now follows a course instead of a speed profile: two stacked blocks, 1.5 by 1.0 miles each, ten miles round. It backs out of a driveway on the shared middle street, takes every corner to the left, runs the top road at 55 mph in S, stops at the stop signs on the top-left and bottom-right corners, signals before each corner and before the driveway, brakes with regen, and parks. The lap distance under the speed dial resets as the car pulls back in. Ten seconds of driving pass per real second (
CAR_CLUSTER_SPEEDUP), so a lap is about two minutes.The status line shows today's date and 75°F. The indicators blink on the real clock.
Verified: a headless lap simulation lands at 10.02 miles with a 55 mph peak and all stops, turns and signals in order; in-process timing shows ten seconds of driving per real second at 25 fps; captures at the stop-sign braking (38 mph in S, 43 kW regen, left signal) and after the lap (backing out again, lap distance 0.0); the unix MicroPython build runs it clean; the wasm gallery boots it in headless Chromium with ArrowLeft reaching the car.