Skip to content
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

Merged
merged 5 commits into from
Jun 26, 2024
Merged

updated main file for simple decision #18

merged 5 commits into from
Jun 26, 2024

Conversation

ashum68
Copy link
Contributor

@ashum68 ashum68 commented Jun 26, 2024

No description provided.

Copy link
Contributor

@TongguangZhang TongguangZhang left a 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
Comment on lines 111 to 135
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)
Copy link
Contributor

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)

Copy link
Contributor

@TongguangZhang TongguangZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ashum68 ashum68 merged commit 786962d into main Jun 26, 2024
1 check passed
@ashum68 ashum68 deleted the decision_main branch June 26, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants