Giter Site home page Giter Site logo

telemetry's People

Contributors

jchanlt avatar jello24 avatar treyu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

telemetry's Issues

Don't use "using namespace xxx"

Try not to use "using namespace xxxx"

Might save time now, but incorrect library calls due to the implicit nature might pop out this way.

x years down the line some poor software guy will tear his own hair out trying to find where things might have been implicit and causing a bug.

Found in: main.cpp

XBee Comms Program - Windows not working correctly at the moment

Use the XBee-Linux program instead.
The XBee-Linux program communicates with the XBees perfectly as of Sept. 25, 2015. This program should be used as a base to build on over the Win32 program for now.

The XBee Comms Program for Windows is not working correctly at the moment. A lot of it comes from issues with working with Win32 functions and data types, which is not an issue with Linux.

  • The sendData() function writes to the serial port properly but the XBee is only sending the data intermittently.
  • The CSerial.Write() function used in sendData() requires a LPCSTR (long char pointer to string) but the sendData() function uses strings for arguments. Conversion from a pointer to a string is possible using std::string.c_str() but the implementation hasn't been tested yet.
  • The receiveData() function reads the serial port but has no way of detecting when there is data on the port or not. As of now, the program blocks everything while waiting for a message to come in, which is highly inefficient. The receiveData() function should use Win32 events to trigger data reads on the port.
  • The receiveData() function also fills up the data buffer faster than it can output the data. This is currently resulting in lost data.

All of these issues can be fixed after the XBees are approved for use, as the Linux program can be used to send data to the XBees for now.

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.