Code Monkey home page Code Monkey logo

controlbox's People

Watchers

 avatar  avatar  avatar  avatar  avatar

controlbox's Issues

argument checking

Eventually you will want to do argument checking.

for example, setArm should check that the input argument vector is of the same length as the number of alphaIds. otherwise the loop will fail.

also, setJoint should check that the joint ids lie in the proper range, from 1 to the length of alphaIds. You can either ignore the entire command if there is a bad joint ids number or you can remove the violators (and their commanded values), then execute the command.

in general it is good to think about the ways that someone can incorrectly invoke a function, then try to put simple checks to prevent errors from happening.

No quotes!

Get rid of the extra quotation marks.

interpolator in constructor

Don't forget to put the ticks interpolation loop into the constructor. That way the interpolation functions don't get recreated each time that you call setArm or setJoint. It is kind of wasteful that way.

test digital input

read input digital lines 1 and 2.
output the result to digital output lines 1 and 2.

do this in a loop until 15 seconds have passed.
will require reading the time.

setJoint

robotArm should have a set joint function.

setJoint( alphaId, alphaAngle);

pan tilt

write the testPanTilt01 script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.