Commit 35d59b0c authored by Demo User's avatar Demo User
Browse files

edits shell script for logging and names, changes casting in collect-urg-lidar.c for time stamp

parent 9029ff4e
......@@ -6,9 +6,8 @@ if [ -e $logfile ]; then
touch $logfile
fi
NOW=$(date +"lidar_%Y_%m_%d_%T")
NOW2=$(echo $NOW | tr : _)
WRITE="Starting at "
echo $WRITE$NOW2 >> log.txt
WRITE="Starting write into "
echo $WRITE$NOW >> log.txt
echo "Running"
./get_distance -e 192.168.1.252 &> /media/card/FieldScience/lidar/$NOW2.dat
./get_distance -e 192.168.1.252 &> /media/card/FieldScience/lidar/$NOW.dat
#./get_distance -e |& tee -a /media/sd0/lidar/$NOW2.dat
......@@ -56,7 +56,7 @@ static int print_data(urg_t *urg, long data[], long time_stamp,
z = (long)(length * cos(radian));
y = (long)(length * sin(radian));
// calculate the proper split_time value
sample_time = 25f / 1081f * (double)(offset + sample_num); // 25 ms / 1081 samples per scan * which sample it is.
sample_time = 25.0f / 1081.0f * (double)(offset + sample_num); // 25 ms / 1081 samples per scan * which sample it is.
// print out the results
fprintf(stderr, "%ld,%ld,%ld,%d,%ld,%f,%d,%d,",
z, y, time_stamp, intensity[sample_num], length, radian, num_rotations, sample_num);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment