Commit 5d962718 authored by Sigurd M. Albrektsen's avatar Sigurd M. Albrektsen

Changed path name to /dev/ttySentiboard02

parent d59fdeff
......@@ -17,7 +17,7 @@ for flight_id in $( seq 0 999 ); do
FLIGHT_DIR=$( printf "$FLIGHT_DIR_NAME%03d" $flight_id )
FLIGHT_PATH=$ROOT_DIR/$FLIGHT_DIR
if [ ! -e "$FLIGHT_PATH" ]; then
break
break
fi
done
......@@ -37,7 +37,7 @@ for logger in ${LOGGER_PROGRAMS[@]}; do
mkdir "$FLIGHT_PATH/$logdir"
#Start task, with logdir as param
echo "Starting logger $logger in directory $FLIGHT_PATH/$logdir"
$logger $FLIGHT_PATH/$logdir &
$logger $FLIGHT_PATH/$logdir &
pid=$!
LOGGERS[$logger]="$!;$logdir"
done
......
......@@ -160,7 +160,7 @@ if __name__ == '__main__':
from parsers.syncboard_reader import SyncboardReader
import sys
import numpy as np
PATH = '/dev/ttySyncboard02'
PATH = '/dev/ttySentiboard02'
if len(sys.argv) > 1:
PATH = sys.argv[1]
reader = SyncboardReader(PATH)
......@@ -187,6 +187,7 @@ if __name__ == '__main__':
continue
if package == None:
continue
print(package.tov, package.deltvel)
now = time()
if start_time == None:
start_time = time()
......
......@@ -212,8 +212,7 @@ if __name__ == '__main__':
parser = StimParser()
from parsers.syncboard_reader import SyncboardReader
import sys
PATH = '/dev/ttySyncboard02'
PATH = 'COM8'
PATH = '/dev/ttySentiboard02'
if len(sys.argv) > 1:
PATH = sys.argv[1]
reader = SyncboardReader(PATH)
......@@ -241,6 +240,7 @@ if __name__ == '__main__':
if package == None:
continue
print(package.tot, np.linalg.norm(package._message.accl)*250)
if start_time == None:
start_time = time()
if (i % 42) == 0:
......@@ -248,9 +248,9 @@ if __name__ == '__main__':
if timediff == 0:
timediff = 1
fps = float(i)/timediff
stdout.write('\rfps: %f %d\t%d\taccl:' % tuple([fps, package.dict['accl_status'], package.tov]))
stdout.write(str(np.array(package._message.accl)*fps))
stdout.flush()
#stdout.write('\rfps: %f %d\t%d\taccl:' % tuple([fps, package.dict['accl_status'], package.tov]))
#stdout.write(str(np.array(package._message.accl)*fps))
#stdout.flush()
i += 1
except Exception as e:
print()
......
......@@ -303,7 +303,7 @@ if __name__ == '__main__':
sys.path.append(os.path.join(dir_path, '..', '..'))
from parsers.syncboard_reader import SyncboardReader
PATH = '/dev/ttySyncboard02'
PATH = '/dev/ttySentiboard02'
if len(sys.argv) > 1:
PATH = sys.argv[1]
......
......@@ -318,7 +318,7 @@ if __name__ == '__main__':
from syncboard_reader import SyncboardReader
import sys
PATH = '/dev/ttySyncboard02'
PATH = '/dev/ttySentiboard02'
if len(sys.argv) > 1:
PATH = sys.argv[1]
reader = SyncboardReader(PATH)
......
......@@ -266,15 +266,15 @@ if __name__ == '__main__':
READER = None
if not READER is None:
READER.com.close()
PATH = '/dev/ttySyncboard02'
PATH = '/dev/ttySentiboard02'
if len(sys.argv) > 1:
print sys.argv[1]
PATH = sys.argv[1]
READER = SyncboardReader(PATH)
READER.register_allowed_ids('stim', ['\x91', '\x92'])
READER.register_allowed_ids('adis', ['\x65\x40', '\x68\x40'])
READER.register_allowed_ids('stim', [b'\x91', b'\x92'])
READER.register_allowed_ids('adis', [b'\x65\x40', b'\x68\x40'])
FIRST_PACKAGE = READER.get_package()
SECOND_PACKAGE = READER.get_package()
......@@ -310,16 +310,16 @@ if __name__ == '__main__':
READER = None
if not READER is None:
READER.com.close()
PATH = '/dev/ttySyncboard02'
PATH = '/dev/ttySentiboard02'
if len(sys.argv) > 1:
print(sys.argv[1])
PATH = sys.argv[1]
READER = SyncboardReader(PATH)
#READER.register_allowed_ids('ublox', ['\xb5b'])
#READER.register_allowed_ids('stim', ['\x91', '\x92', '\x93'])
READER.register_allowed_ids('adis', ['\x6A\x40', '\x68\x40'])
READER.register_allowed_ids('adis_new', ['\x40\x6A', '\x40\x68'])
#READER.register_allowed_ids('ublox', [b'\xb5b'])
#READER.register_allowed_ids('stim', [b'\x91', b'\x92', b'\x93'])
READER.register_allowed_ids('adis', [b'\x6A\x40', b'\x68\x40'])
READER.register_allowed_ids('adis_new', [b'\x40\x6A', b'\x40\x68'])
FIRST_PACKAGE = READER.get_package()
SECOND_PACKAGE = READER.get_package()
......
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