-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated main file for simple decision #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed
main.py
Outdated
while True: | ||
try: | ||
flight_interface_data: drone_odometry_local.DroneOdometryLocal = ( | ||
flight_interface_to_main_queue.queue.get_nowait() | ||
flight_interface_to_data_merge_queue.queue.get_nowait() | ||
) | ||
|
||
if flight_interface_data is not None: | ||
print(flight_interface_data) | ||
|
||
detection_data: lidar_detection.LidarDetection = ( | ||
detection_to_main_queue.queue.get_nowait() | ||
detection_to_data_merge_queue.queue.get_nowait() | ||
) | ||
|
||
if detection_data is not None: | ||
print(detection_data) | ||
|
||
merged_data: detections_and_odometry.DetectionsAndOdometry = ( | ||
merged_to_decision_queue.queue.get_nowait() | ||
) | ||
if merged_data is not None: | ||
print(merged_data) | ||
|
||
command_data: decision_command.DecisionCommand = ( | ||
command_to_flight_interface_queue.queue.get_nowait() | ||
) | ||
if command_data is not None: | ||
print(command_data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't get from the queues in main - the while loop should just be empty (for now we can except keyboard interrupts to shut down the program)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.