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

Waterwitch i2c master #11

Merged
merged 18 commits into from
Feb 15, 2025
Merged

Waterwitch i2c master #11

merged 18 commits into from
Feb 15, 2025

Conversation

Zaid-Duraid
Copy link
Contributor

This branch adds the following:

  • working i2c comms to the waterwitch backend for driving thrusters with the RP2040
  • The RP2040 address and thruster mapping dictionary are configurable and found in waterwitch_constants.cpp
  • Some fixes for building the backend docker container

@Zaid-Duraid Zaid-Duraid self-assigned this Feb 1, 2025
@Zaid-Duraid Zaid-Duraid requested review from evaan and abudgell February 1, 2025 17:10
To do: Bug fixes and testing.
Copy link
Contributor

@abudgell abudgell left a comment

Choose a reason for hiding this comment

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

Looks good. What is my role for this now?

private:
rclcpp::Subscription<eer_interfaces::msg::WaterwitchControl>::SharedPtr control_values_subscriber;

void write_to_i2c(int device_address, uint8_t byte_1, uint8_t byte_2, uint8_t num_bytes)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should put the num_bytes argument before byte1 and byte2

Change: num_bytes argument now before byte_1 and byte_2 in write_to_i2c method
@Zaid-Duraid Zaid-Duraid merged commit 521b5ed into main Feb 15, 2025
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.

4 participants