Git Product home page Git Product logo

servo-testing-system's Introduction

ComPortControl

Steering Motor Control Program

Configuration

Put rxtxParallel.dll and rxtxSerial.dll into {$JAVA_JRE_PATH}/bin In Eclipse, Project->Properties->Java Build Path->Libraries->Add JARS, add the RXTXcomm.jar into the Libraries.

Process and Procedure

  • Step 1: Read in commands from .txt for controling the steering motor corresponding pins
  • Step 2: Create the same number of threads as COM ports, where one thread handles one COM ports business
  • Step 3: Distribute the Commands to each thread. Each thread only get and execute its own commands, while leave other commands unconsumed.

Files and Directories

cmdReader

CmdReader.java: The major file for .txt commands read in and storing;
ReadInCmd.java: Read in the commands from .txt files; Change the command .txt file path at here
string2DataPacket.java: Convert the string to standardlize commands.

comPortWriter

ContinueWrite.java: The main file contains the main function for all program logic process; Create threads corresponding to COM number at here
ComPortDataPackage.java: Define the data packet format for steering motor control;
Tuple.java: Define the utilities data structure used by this projects.

controlPanel

ControlPanel.java: A legacy file currently unused by this project, it is just a simple panel for controling the steering motors;
comPortWriter/ShowUtils.java: A legacy file currently unused by this project.

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.