-
-
Save biggidvs/72376f2e79f26aab6f4a92d965d8206b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while keep_going is True: | |
# get raw lidar reading | |
scan1_raw = scan_1.Scan() | |
# setup distance screen | |
try: | |
print(scan1_raw[150]) | |
message = scan1_raw[150] | |
messages.put(message) | |
except: | |
pass | |
# check for scanner 1 data then populate list -> pass if we have no good data | |
if not scan1_raw: | |
pass | |
else: | |
for angle in range(140,161,1): | |
if angle in scan1_raw: | |
if len(scan1_nonfilt[angle]) < 11: | |
scan1_nonfilt[angle].append(scan1_raw[angle]) | |
# Originally queue was loaded here and lagging, up above it is not. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment