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

Add additional Thrusters to arduino/i2c-slave/i2c-slave.ino #3

Closed
pwoosam opened this issue Oct 8, 2017 · 0 comments
Closed

Add additional Thrusters to arduino/i2c-slave/i2c-slave.ino #3

pwoosam opened this issue Oct 8, 2017 · 0 comments

Comments

@pwoosam
Copy link
Owner

pwoosam commented Oct 8, 2017

I have only implemented the elevator thruster (The one that goes up and down). We still need the left and right thrusters to be implemented so that we can send messages to them from the Pi and get them moving. Implementation of the left and right thrusters should be almost identical to my implementation of the elevator thruster.

Here are some examples of messages to the Arduino that move the elevator thruster. The left and right thrusters should be similar.

from i2c_master import Arduino

ard = Arduino()
ard.send('255', register=0x10)   # Move the elevator thruster up at full speed
ard.send('10', register=0x10)    # Move the elevator thruster up at a slow speed
ard.send('0', register=0x10)     # Turns off the elevator thruster
ard.send('-255', register=0x10)  # Move the elevator thruster down at full speed

I would like to be able to move the left and right thrusters in a similar fashion.
For example:

ard.send('255', register=0x11)   # Move the left thruster forward at full speed
ard.send('-255', register=0x12)  # Move the right thruster backward at full speed
a-ridley added a commit to a-ridley/ROV-LB that referenced this issue Oct 10, 2017
Pivot Left
@pwoosam pwoosam closed this as completed Oct 15, 2017
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

No branches or pull requests

1 participant