Files
dragonpilot/scripts/atl.sh
Rick Lan e323b8ef0e dragonpilot 0.7.6.1
========================
* Based on latest openpilot 0.7.6.1 devel.
* Optimized and integrated several dp services. (Settings have been renamed, please re-config all settings)
* Completely disabled steer ratio learner.
* Removed Accel Profile.
* Added Honda Breeze Hybrid FPv1. (Thanks to @劉駿)
* Added Taiwan Toyota Prius 4.5 FPv1. (Thanks to @jeekid)
2020-07-06 20:58:16 +10:00

19 lines
694 B
Bash
Executable File

#!/usr/bin/bash
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
export HOME=/data/data/com.termux/files/home
export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/data/data/com.termux/files/usr/bin/git
export PYTHONPATH=/data/openpilot
echo -n 1 > /data/params/d/dp_is_updating
if [ $1 -eq 1 ]; then
printf %s "1" > /data/params/d/dp_atl
printf %s "0" > /data/params/d/dp_uploader
fi
if [ $1 -eq 0 ]; then
printf %s "0" > /data/params/d/dp_atl
cd /data/openpilot || exit
git reset --hard @{u}
git clean -xdf
fi
reboot