GithubHelp home page GithubHelp logo

c1c0-movement's People

Contributors

ah677 avatar bsawka avatar djl357 avatar jwtamor avatar katzhou713 avatar ki5953 avatar lk1007 avatar sgp62 avatar stellahan0312 avatar tiffanyguo8 avatar

Watchers

 avatar  avatar  avatar  avatar

c1c0-movement's Issues

Add feedback controls for both locomotion motors in microcontroller-side program.

We've had a pretty consistent problem over the past year or so where C1C0 doesn't really drive straight, and I think I've diagnosed the problem - to summarize, despite the two motors having closed-loop feedback controllers built in to their drivers, they currently are treated as the only system in the universe and have no information about the other motor. What's necessary is to provide feedback from each motor to the microcontroller sending PWM signals to each driver, and adjust the signals using some robust controller design. There are many ways to approach this, and it could be quite the undertaking.

Add message receive function to locomotion.py

Currently, locomotion.py sends messages to the locomotion Arduino but lacks any code for receiving messages from the Arduino. Using pySerial and R2Protocol, add functionality for receiving messages. Messages are sent from the Arduino using R2Protocol, and the Python-side R2Protocol can decode such messages - all that's needed is code for reading the correct amount of bytes from a serial line.

Start Jetson-side Python code for arms

A program for the Jetson to send commands to the arms is necessary. This will be extremely similar to locomotion.py (or whatever the final version of that program is). The program should act as a server to accept input from other processes through sockets, and handle xbox controller input (this is a pretty aggressive project on its own, really). It will send commands based on that input to the arms microcontroller using R2Protocol-encoded messages, just as locomotion.py does currently. It should also be able to receive R2Protocol-encoded messages from the microcontroller.

Start microcontroller-side code for arms

Just as the locomotion microcontroller accepts input and actuates the motors in HeadLocomotion.ino, we need a similar program to run on the arms Arduino. The program will be very similar to the final version of HeadLocomotion.ino - it should accept R2Protocol-encoded messages from the Jetson (probably consisting of an angular amount to move), actuate motors to the correct place using rotary encoder feedback, and be able to send update messages (again, with R2Protocol) to the Jetson.

Modify Jetson-side locomotion program to act as a server

locomotion.py will need to accept input from other processes using sockets, as described in the new scheduler plan. This functionality may be added to locomotion.py, or, given how messy locomotion.py currently is, consider writing a fresh program based on locomotion.py which manages xbox and socket input.

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.