GithubHelp home page GithubHelp logo

noaa_bbb_pru_daq_cape's People

Contributors

douglas-ohlhorst-noaa avatar laurelwatts avatar sciciora avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

noaa_bbb_pru_daq_cape's Issues

MIN and MAX not used

The functions MIN and MAX are not used. These can either be removed or changed to preprocessor definitions like so:

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))

Move build script into current Makefile

Current build file is redundant and can simply be moved to the Makefile that currently exists. In fact, I would make several rules out of this - a peak file rule, a pops rule and at least one PRU rule.

Convert comments to Doxygen format

This is a pretty standard format that allows you to generate documentation on the code directly from the code itself. More information on doxygen is here.

Example:

Current code:

//******************************************************************************
//
//  CompressBins
//
//  Compress 16 BINS to 8.  Used on some balloon or aircraft Status outputs.
//
//  gHist 0..5 are 16 bin data
//  gHist 6 is 6+7+8+9
//  gHist 7 is 10+11+12+13+14+15
//
//******************************************************************************

void CompressBins(void)
{
    ...
}

Suggested format:

/**
 * @brief Compress 16 BINS to 8.  Used on some balloon or aircraft Status outputs.
 * 
 * `gHist` 0..5 are 16 bin data
 * `gHist` 6 is 6+7+8+9
 * `gHist` 7 is 10+11+12+13+14+15
 * 
 */
void CompressBins(void)
{
    ...
}

Random structs

There are a lot of structs that contain one member. Examples:

struct gUDP
{
    struct UDP udp[6];
} gUDP;
struct gData
{
    struct Peaks peak[30000];
} gData;  
struct gSerial_Ports
{
    struct Serial_Port serial_port[2];
} gSerial_Ports;

Is there a reason that these reside in structs?

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.