X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-bringup%2Fturnon_teledongle;h=5145e9b0bafc0831a7c98d45a9f1834853ad64bb;hb=b85df38b5611e45cb9296df07b720badf74ac26e;hp=ea7a7b2aec1cf937d0eef210dd23c1118e1850cf;hpb=9801ff7de21027935f52ccabaa3ff157e22d21ce;p=fw%2Faltos diff --git a/ao-bringup/turnon_teledongle b/ao-bringup/turnon_teledongle index ea7a7b2a..5145e9b0 100755 --- a/ao-bringup/turnon_teledongle +++ b/ao-bringup/turnon_teledongle @@ -39,10 +39,10 @@ $RAWLOAD -r ao_radio_xmit.ihx echo -n "Generating RF carrier. Please enter measured frequency: " read FREQ -CAL_VALUE=`nickle -e "ceil(434.55 / $FREQ * 1186611)"` +CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"` echo "Programming flash with cal value " $CAL_VALUE -$AOLOAD --cal $CAL_VALUE /usr/share/altos/teledongle-v0.2.ihx $SERIAL +$AOLOAD --cal $CAL_VALUE /usr/share/altos/stable/teledongle-v0.2*.ihx $SERIAL echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE echo "Unplug and replug USB, cu to the board, confirm freq and record power"