From ded41e253388fec1947969f45670dd948a871dd9 Mon Sep 17 00:00:00 2001 From: concordia Date: Fri, 26 Apr 2024 20:04:03 -0500 Subject: [PATCH] wip --- clearpilot_design.txt | 58 ++++++++++++++++++++++++++++++++ clearpilot_settings.txt | 74 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 clearpilot_design.txt create mode 100644 clearpilot_settings.txt diff --git a/clearpilot_design.txt b/clearpilot_design.txt new file mode 100644 index 0000000..3609955 --- /dev/null +++ b/clearpilot_design.txt @@ -0,0 +1,58 @@ +Goals: +Tasks: + +Buttons: +- Cruise: Standard +- Up: If below limit, set speed to limit, else std +- Stop / Res: Standard +- Down: If above limit, set speed to limit, else std +- Distance: Std + +Primary: + +- Vastly simplified and opinionated settings +- - force stock long +- Privledged mode for specifically enabled dongles +- - option for relaxed babysitter / no babysitter (privledged) +- - Light warning at 6 seconds / Loud at 12, relaxed model light 15 / Loud 25 +- - +- - Override if hands on wheel + +- change dash icon statuses to be more useful +- test canbus capture +- capture buttons, car inputs +- custom button press emulation +- custom experimental mode emulation +- disable all lane change stuff except pause lat on turn signal under 30 +- disable all non alert sounds, force alert sounds on +- fix cruise control engage so it still activates always on lat even when breaking + - ideally it fakes the cruise hud as well, and activates cruise when brakes released +- System for abstracting out automation events so it can be ported to other car types +- On screen speed limit should show current virtual set speed +- Conditionally display speed limit when out of range of speed limit +- Speed green when set to speed limit +- Increase speed up to 2 mph w lead and set to speed limit + +Secondary: + +- auto enable ssh +- stealth mode (screen off) +- Custom icon, overridable +- dash cam feature +- warn on red light +- warn on green light +- weather report on idle +- resume when lead car driving away on cruise +- capture hyundai speed limit correctly +- auto cruise control speed setting (press button to change speed, obvious indicator speed is wrong) +- UI changes - more obvious when engaged / always on lat / conditional / off for passengers + +Stretch goals: + +- port to GM +- Auto set dash display to MPH +- Auto set smart drive mode +- Detect or ideally close sunroof on off +- Auto enter carplay on boot +- Weather report on steering star button + diff --git a/clearpilot_settings.txt b/clearpilot_settings.txt new file mode 100644 index 0000000..e16c3c2 --- /dev/null +++ b/clearpilot_settings.txt @@ -0,0 +1,74 @@ + +Try cabana +https://github.com/commaai/openpilot/tree/master/tools/cabana + +Today: + +- Auto SSH +- Prelaunch shell +- Custom home screen UI +- Custom settings UI +- Canbus state debugger UI +- Can I get a web ui running? + +Settings Design: +Main: +Driving: +- Openpilot - On (D), off (all stock) +- Lane Change Assist: None (D), Nudge, Nudgeless +- Always On Lat: OP, Stock, Off. OP: Pause below X mph +- Auto Stock Lat: Cruise Off + Wheel, Off +- Reduce speed on curves: On (D) / Off +- (V2) Hold speed on lane change: On / Off +- Resume from stop on cruise: On (D) / Off +- Auto Speed Offsets - (make display green when speed matches mph) +- Increase Speed with lead when Auto +- Speed up / down - toggle match speed to limit +Controls: +- (V2) LKAS button: + - Standard behavior is tap for screen on / off. + - Options: + - Tap: for on / off, on / wireframe / off, on / weather / off, op lat, stock lat, no lat, match speed, toggle auto speed + - Hold: Same ^ +- Info buttons: + - (Depends on what i can input / output on info bus) +Display: +- Display - On, On when engaged, Wireframe with passenger, Off with passenger, Off +- Engagement indicator: Border, small label, icon +- Parked: Weather, trip stats / map, static image, off +- Boot Icon: Comma, clearpilot, pacman, car make, custom, off +Safety & Alerts: +- Attention Monitor: Strict, (D) Relaxed Daytime / No Lead / Low Traffic, Relaxed (Privledged), Off (Privledged) +- ATN: Strict on unrecognized driver +- ATN: Off on using wheel +- Require Wheel - Always, At Night, Never +- Wheel: Always on unrecognized driver +- Lane Departure Warning +- Stop Warning +- Go Warning +- Lead Departure Warning +- Over Speed Warning +- Weather alerts +Car: +- Auto set climate +- Auto close sunroof / windows +- Auto open sunroof shield night / close day +- Auto set "SMART" +- Auto set UI MPH +System: +- (V2) Enable OpenPilot - Always, on recognized driver, off +- (V2) Register recognized driver (requires a bt dongle) +- (V2) Settings lockout pin +- (V2) Dash Cam - Off, retention days, upload endpoint, record gps +- (V2) Metered Wifi Network +- (V2) High BW Wifi Network +- (V2) Hotspot (select secondary wifi) +- Wifi Settings +- SSH Access +- Canbus tools + - Record Canbus + - Show I/O State (overrides driving UI while engaged) + - Test Output +- Reset calibration +- Reset device +- Device Shutdown Timer