- Fix controlsd crash: self.state.name AttributeError when state is int - Move telemetry tlog import to module level in carstate.py (was per-frame) - Remove FrogPilot screen recorder from UI (was crashing OMX on init) - Ready screen: boot logo background, 8-bit READY! sprite, error states (panda not connected, car not recognized) with 10s startup grace period - ClearPilot menu: always opens to General, QButtonGroup for sidebar, System Status uses ButtonControl, VPN toggle with process control - Sidebar hidden on construction (no flash before splash) - Status window: threaded data collection (QtConcurrent), panda detection via scene.pandaType (SPI, not USB), only refreshes when visible - VPN: moved to system/clearpilot/, SIGTERM graceful shutdown, keepalive ping through tunnel, killall openvpn on disable, launched from launch_openpilot.sh instead of continue.sh - Disable gpsd and dashcamd temporarily for perf testing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
965 B
Bash
Executable File
30 lines
965 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
# Kill other instances of this script, launch chain, and all managed processes
|
|
for pid in $(pgrep -f 'launch_openpilot.sh' | grep -v $$); do
|
|
kill -9 "$pid" 2>/dev/null
|
|
done
|
|
for pid in $(pgrep -f 'launch_chffrplus.sh' | grep -v $$); do
|
|
kill -9 "$pid" 2>/dev/null
|
|
done
|
|
pkill -9 -f 'python.*manager.py' 2>/dev/null
|
|
# Kill all processes started by the manager (run as comma user, in openpilot tree)
|
|
pkill -9 -f 'selfdrive\.' 2>/dev/null
|
|
pkill -9 -f 'system\.' 2>/dev/null
|
|
pkill -9 -f './ui' 2>/dev/null
|
|
pkill -9 -f 'selfdrive/ui/text' 2>/dev/null
|
|
sleep 1
|
|
|
|
bash /data/openpilot/system/clearpilot/on_start.sh
|
|
|
|
# CLEARPILOT: start VPN monitor (kills previous instances, runs as root)
|
|
sudo bash -c 'nohup /data/openpilot/system/clearpilot/vpn-monitor.sh >> /tmp/vpn-monitor.log 2>&1 &'
|
|
|
|
# CLEARPILOT: pass --bench flag through to manager via env var
|
|
if [ "$1" = "--bench" ]; then
|
|
export BENCH_MODE=1
|
|
fi
|
|
|
|
cd /data/openpilot
|
|
exec ./launch_chffrplus.sh
|