Skip to content

Finished phase 2 of bootcamp#47

Open
sahijdev wants to merge 1 commit intoUWARG:mainfrom
sahijdev:main
Open

Finished phase 2 of bootcamp#47
sahijdev wants to merge 1 commit intoUWARG:mainfrom
sahijdev:main

Conversation

@sahijdev
Copy link

@sahijdev sahijdev commented Feb 9, 2026

No description provided.

@@ -0,0 +1,27 @@
23:37:48: [INFO] [/Users/sahij/Desktop/autonomy/autonomy-bootcamp-2025-p2/modules/command/command_worker.py | command_worker | 46] Logger initialized
Copy link
Contributor

Choose a reason for hiding this comment

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

your average velocity should be here

23:45:27: [INFO] [/Users/sahij/Desktop/autonomy/autonomy-bootcamp-2025-p2/modules/common/modules/logger/logger_main_setup.py | setup_main_logger | 62] main logger initialized
23:45:27: [INFO] [/Users/sahij/Desktop/autonomy/autonomy-bootcamp-2025-p2/tests/integration/test_telemetry.py | main | 108] Connected!
23:45:27: [INFO] [/Users/sahij/Desktop/autonomy/autonomy-bootcamp-2025-p2/tests/integration/test_telemetry.py | read_queue | 65] Worker status: {
time_since_boot: 333,
Copy link
Contributor

Choose a reason for hiding this comment

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

something is up with your time_since_boot

return

# Main loop: do work.
while not controller.is_exit_requested():
Copy link
Contributor

Choose a reason for hiding this comment

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

it's good practice to include controller.check_pause() as this checks if the workers are requested to pause (it blocks/sleeps the worker until unpause). the same applies to all other workers

Comment on lines +113 to +125
position = self.connection.recv_match(
type="LOCAL_POSITION_NED", blocking=True, timeout=self.timeout
)
time_taken = self.timeout - (time.time() - start_time)
if time_taken <= 0:
self.local_logger.error("Timeout before ATTITUDE reached")
return None

attitude = self.connection.recv_match(type="ATTITUDE", blocking=True, timeout=time_taken)
if position is None or attitude is None:
self.local_logger.error("Did not receieve both messages")
return None

Copy link
Contributor

Choose a reason for hiding this comment

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

the order of checking for position and attitude maye be causing your issue

Comment on lines +22 to +23
controller: worker_controller.WorkerController,
telemetry_queue: queue_proxy_wrapper.QueueProxyWrapper,
Copy link
Contributor

Choose a reason for hiding this comment

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

syntax comment - usually we place input/output queues before the controller to match how we use it in bootcamp_main.py with WorkerProperties

Comment on lines +228 to +232
try:
command_string = command_queue.queue.get(timeout=0.1)
main_logger.info(f"Command: {command_string}")
except queue.Empty:
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

this can go in the same try and except block

main_logger.info("Started")

# Main's work: read from all queues that output to main, and log any commands that we make
# Continue running for 100 seconds or until the drone disconnects
Copy link
Contributor

Choose a reason for hiding this comment

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

need to check for drone disconnecting

@ellyokes253
Copy link
Contributor

reviewed!

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