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 humanoid code #17

Closed
sfranzyshen opened this issue Sep 26, 2020 · 1 comment
Closed

add humanoid code #17

sfranzyshen opened this issue Sep 26, 2020 · 1 comment

Comments

@sfranzyshen
Copy link
Collaborator

sfranzyshen commented Sep 26, 2020

update: code is up ...
I'll push code here today that adds the humanoid code to this project ... the changes have already been added to the Arduino 'unified' OttoDIYArduino project ...

uses the same import and initialization for either Otto or Humanoid

import otto9
Otto = otto9.Otto9()

to initialize Otto, call things as you would normally ...

Otto.init(YL, YR, RL, RR, load_calibration, NoiseSensor, Buzzer, USTrigger, USEcho)

to initialize the Humanoid ... there are several ways ... including initHUMANOID() to stay 100% backwards compatible ...

Otto.init(YL, YR, RL, RR, load_calibration, NoiseSensor, Buzzer, USTrigger, USEcho, LA, RA)

Otto.init(YL, YR, RL, RR, LA = 4, RA = 5, load_calibration, NoiseSensor, Buzzer, USTrigger, USEcho)

Otto.initHUMANOID(YL, YR, RL, RR, LA, RA, load_calibration, NoiseSensor, Buzzer, USTrigger, USEcho)

essentially, Otto is a Humanoid with the arms not hooked up ... so we could just use the Humanoid code ... however, steps were taken to only init, and update the connect servos ... if you call 'arm only movements' and initialized as a Otto (not Humanoid) the call will be ignored ...

sfranzyshen added a commit that referenced this issue Sep 27, 2020
added Otto9Humanoid code see issue #17 - #17
@sfranzyshen
Copy link
Collaborator Author

code is up but needs testing

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