Commit af915f62 authored by aakhoja15's avatar aakhoja15
Browse files

Edits to time splitting in MergeTelemLidar.py

parent 39e4e005
......@@ -48,9 +48,6 @@ def timeChange(decTime):
timeInMs = (timeSplit[0]*3600000) + (timeSplit[1]*60000) + (timeSplit[2]*1000) + timeSplit[3]
return timeInMs
def kiaTimeChange(decTime):
pass
def main():
args = vars(argumentHandler())
lidar_file, telem_file, output_dir, correct_flight = args["lidar_file"], args["telem_file"], args["output_dir"], args["correct_flight"]
......@@ -90,7 +87,12 @@ def main():
# pitch = row[9], roll = row[10], yaw = row[11]
for row in reader_telem:
timeT = timeChange(row[6])
try:
timeT = timeChange(row[6])
except:
print("Unable to parse time - stopping operation. Failed on row:", row)
print("Time Element:",row[6])
quit()
pitch = radians(float(row[9]))
yaw = radians(float(row[11]))
roll = radians(float(row[10]))
......
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