projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/easymega-v2.0: Handle different mpu9250 orientation
[fw/altos]
/
ao-bringup
/
turnon_telebt
diff --git
a/ao-bringup/turnon_telebt
b/ao-bringup/turnon_telebt
index 8bf9bcb56bb5429aa13e1849d258f2b1347bbe7e..3e9fddaa4da8203bf26350cf266b9730ccb02a14 100755
(executable)
--- a/
ao-bringup/turnon_telebt
+++ b/
ao-bringup/turnon_telebt
@@
-64,11
+64,18
@@
case "$dev" in
;;
esac
;;
esac
+CALFILE=cal-$SERIAL.txt
+
echo 'E 0' > $dev
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+../ao-tools/ao-cal-freq/ao-cal-freq --nosave --output=$CALFILE --tty=$dev
+
+# echo 'E 1' > $dev
-echo 'E 1' > $dev
+CAL_VALUE=`cat $CALFILE`
+echo $SERIAL","$CAL_VALUE >> cal_values
+echo "Reflashing with calibration: $CAL_VALUE"
+$USBLOAD --cal=$CAL_VALUE --tty=$dev $ALTOS_FILE || exit 1
echo -n "checking BlueTooth functionality... "
btdev=`hcitool scan | awk -F \- '/TeleBT/ { print $2 }'`
echo -n "checking BlueTooth functionality... "
btdev=`hcitool scan | awk -F \- '/TeleBT/ { print $2 }'`