Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DWAINE Telesci calculator
#4
Here is a version that only works with a paper in the scanner, but it provides a script that will generate a calculator script for you, so you don't have to manually insert your calibration values into the script itself each time you use it.

Code:
#!
echo GENERATING...
eval $arg6 $arg4 - to mx
eval $arg7 $arg5 - to my
eval $arg4 $mx $arg2 * - to cx
eval $arg5 $my $arg3 * - to cy
echo eval $arg0 $cx - $mx / to xoutput ^ tmp
echo eval $arg1 $cy - $my / to youtput ^ tmp
echo echo X value: ^ tmp
echo echo $xoutput ^ tmp
echo echo Y value: ^ tmp
echo echo $youtput ^ tmp
echo #! ^ calc
cat tmp ^ calc
rm tmp
echo DONE

Copy this from the scanner to a file named generate. After that, run the command generate $arg0 $arg1 x1 y1 x1a y1a x2a y2a. Type the $arg0 and $arg1 exactly as they are written, since these are placeholder values. X1 and Y1 are the first coordinate you enter into the console, and X1A and Y1A are the GPS results from sending to X1/Y1. The second set of console coordinates must be exactly 1 higher than the first set, and then X2A and Y2A are the GPS results from the second send.

Once the terminal outputs DONE, you can run calc x y passing in real coordinates for X/Y, and it will give you the calculated coordinates to put into the console.
Reply


Messages In This Thread
DWAINE Telesci calculator - by Marksman - 09-12-2020, 07:12 AM
RE: DWAINE Telesci calculator - by Boxta - 09-12-2020, 07:38 AM
RE: DWAINE Telesci calculator - by Marksman - 09-16-2020, 05:56 AM
RE: DWAINE Telesci calculator - by glassofmilk - 09-17-2020, 10:55 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)