Giter VIP home page Giter VIP logo

tmc's People

Contributors

bclmary avatar twido avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

bclmary

tmc's Issues

Deb package

Create deb package for easy installation.

Add .gitignore

Add .gitignore file. File should contain build directory and driver directory. Optionally IDE's files for QtCreator and Netbeans.

Installation problems and problems with TBD001

Hy,

Here are some issues I encountered during installation on a debian Sid.

  • The 3d line of the Makefile didn't work on my shell, I had to blank the variable PATH_PREFIX.
  • The Linker awaits ftd2xx to be copied in system library (at least, in /usr/local/lib/). This is specified in the ReadMe of the driver, but not in your documentation. An alternative could be to set the linker's library path differently.

What follows may be specific with Thorlabs TBD001 (but I don't think so...):

  • In cmd.cpp, some device_calls functions are switched in conditional blocs of several command functions: StartRelMoveC, StartAbsMoveC (and perhaps StartJogMoveC, I didn't used this one). This make these commands unusable with TBD001 at least.
    For example, in StartRelMoveC, conditional bloc:
    if (dist_spec) ret = device_calls::StartSetRelativeMove(0x50, index);
    else ret = device_calls::StartRelativeMove(dist, 0x50, index); 

should be:

    if (dist_spec) ret = device_calls::StartRelativeMove(dist, 0x50, index); 
    else ret = device_calls::StartSetRelativeMove(0x50, index);
  • TBD001 model is not set in 'functionsSet' of init.cpp (line 303).

These are more subjective:

  • A tab/spaces at the beginning of each return of a command may enhance readability. For example:
relmove -h
    Start relative move. Distance can be either specified or previously set by relmovep command.
    -i NUMBER           index of motor to start move, default is 1
    -d VALUE            distance to move, if not specified parameter stored in device is used
relmove -d ...
  • The very first message before prompt should be preceded by a blank line (I stupidly didn't see it the very first time !). By the way, It may be useful to write that '-h' option is available for every command (took me some time to figure that out).
    This is on line 1625 of file cmd.cpp. My proposition :
    printf("\nAwaiting commands. Type \"help\" to display available commands.\n(tip: \"-h\" option is available for all commands to obtain specific help)\n");

Great job anyway :-D

Build Ubuntu 16.04

Graphical build on Ubuntu 16.04 fails due to wrong includes of qt lib. Fix and check if problem occurs in Debian 9 too.

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.