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

GPS: Send log command and receive log response from gps receiver #247

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

christopherkinyua
Copy link
Contributor

Related Issues

Closes #246

Summary

This PR implements UART communication between the GNSS Receiver and the OBC. This includes transmitting a log command as a string and receiving a log response from the GNSS receiver

Changes Made

The changes made to realize this were as follows:

  • Modified uart_handler to receive the GNSS response in interrupt mode.
  • Created a function GPS_set_uart_interrupt_state to initialize UART communication
  • Created a file called gps_internal_drivers that contains the function, GPS_send_cmd_get_response, that handles the communication with the GNSS receiver.
  • Added a telecommand TCMDEXEC_gps_send_log_cmd to call the function mentioned above.

Testing Instructions

Tests were conducted on 28th November with @DeflateAwning and @NuclearTea present and we verified the functionality of the functions mentioned. Hence, the tests were successful.

Special Notes for Your Reviewer(s)

There are some TODO and FIXME tags within the code based on the current implementation that will need deeper looking into for proper functionality.

@christopherkinyua christopherkinyua added requirement A mission requirement pr-please-review Indicator for someone to review a PR labels Dec 2, 2024
@christopherkinyua christopherkinyua self-assigned this Dec 2, 2024
@christopherkinyua christopherkinyua linked an issue Dec 2, 2024 that may be closed by this pull request
@DeflateAwning DeflateAwning added pr-awaiting-testing and removed requirement A mission requirement labels Dec 3, 2024
Copy link
Contributor

@DeflateAwning DeflateAwning left a comment

Choose a reason for hiding this comment

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

Awesome work!

@@ -0,0 +1,144 @@
#include "main.h"

#include "debug_tools/debug_uart.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change file to indent using spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed my VS Code Preferences and saved the file. I dont see any changes after this. Can you elaborate if that is what you meant?

firmware/Core/Src/gps/gps_internal_drivers.c Outdated Show resolved Hide resolved
firmware/Core/Src/gps/gps_internal_drivers.c Outdated Show resolved Hide resolved
firmware/Core/Src/gps/gps_internal_drivers.c Outdated Show resolved Hide resolved
firmware/Core/Src/gps/gps_internal_drivers.c Show resolved Hide resolved
firmware/Core/Src/gps/gps_internal_drivers.c Outdated Show resolved Hide resolved
firmware/Core/Src/gps/gps_internal_drivers.c Show resolved Hide resolved
firmware/Core/Src/gps/gps_internal_drivers.c Outdated Show resolved Hide resolved
firmware/Core/Src/telecommands/gps_telecommand_defs.c Outdated Show resolved Hide resolved
@christopherkinyua christopherkinyua added pr-please-review Indicator for someone to review a PR and removed pr-awaiting-changes labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-awaiting-testing pr-please-review Indicator for someone to review a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPS: Send a log command and receive a log response via UART
2 participants