Code Monkey home page Code Monkey logo

gyro_table's Introduction

gyro_table

Repo for the gyro table at NanoSatLab, UPC, 2017 Marc CF

USAGE

Send commands through Serial communications with 115200 boudrate, no parity and no \n or \r or \n\r needed. Device is always listening to serial port.

- What do you send?

First character is p or v. p stands for position (your setting up a movement from your current position) and v stands for velocity.

So if you send:

p30

You will move CCW 30 degrees.

It accepts negatives and decimals, such

p-60.5

Where you will be moving 60.5 degrees from your current position CW

Works the same way with velocity.

v30

And you will constantly rotate 30 deg/second CCW.

If you're using command line to send the commands, you can append them by adding a sleep 1. Example (considering your port is ttyACM0):

$ echo -ne 'p360' > /dev/ttyACM0 && sleep 1 && echo -ne 'p-360' > /dev/ttyACM0

This command will turn your table 360 deg CCW and then 360 deg CW.

- What do you receive?

You will receive something like that:

p, 30, 3242

Where p means you have send a position command, to turn 30 degrees CCW and 3242 are the milliseconds since you start the microcontroller. If you sent velocity, you will get something like that:

v, 60,3453

gyro_table's People

Contributors

astromarc avatar

Watchers

James Cloos avatar

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.