Commit c92390f5 authored by enfo's avatar enfo

Added bool for delta values

parent 59ea83af
Pipeline #120 passed with stages
in 1 minute and 2 seconds
......@@ -178,17 +178,29 @@ class StimParser(object):
accl_x, accl_y, accl_z,
incl_x, incl_y, incl_z, temp)
'''
#print package[:20]
stim_package = StimPackage(pack.tov, pack.toa, pack.tot, pack.timestamp,
delta_values = True
if delta_values:
stim_package = StimPackage(pack.tov, pack.toa, pack.tot, pack.timestamp,
GX3, GX2, GX1, GY3, GY2, GY1, GZ3, GZ2, GZ1, GS,
AX3, AX2, AX1, AY3, AY2, AY1, AZ3, AZ2, AZ1, AS,
IX3, IX2, IX1, IY3, IY2, IY1, IZ3, IZ2, IZ1, IS,
COUNT, LATENCY, CRC,
angular_rate=False, incremental_angle=True,
acceleration=False, incremental_velocity=True,
incl_acceleration=False, incl_incremental_velocity=True,
incl_average=False, g_range='10g')
else:
stim_package = StimPackage(pack.tov, pack.toa, pack.tot, pack.timestamp,
GX3, GX2, GX1, GY3, GY2, GY1, GZ3, GZ2, GZ1, GS,
AX3, AX2, AX1, AY3, AY2, AY1, AZ3, AZ2, AZ1, AS,
IX3, IX2, IX1, IY3, IY2, IY1, IZ3, IZ2, IZ1, IS,
COUNT, LATENCY, CRC,
angular_rate=False, incremental_angle=True,
acceleration=False, incremental_velocity=True,
incl_acceleration=False, incl_incremental_velocity=True,
angular_rate=True, incremental_angle=False,
acceleration=True, incremental_velocity=False,
incl_acceleration=True, incl_incremental_velocity=False,
incl_average=False, g_range='10g')
return stim_package
......@@ -213,7 +225,7 @@ if __name__ == '__main__':
try:
while True:
package_buf = reader.get_package()
if package_buf == None:
break
try:
......
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