noaa-csl / noaa_bbb_pru_daq_cape Goto Github PK
View Code? Open in Web Editor NEWNOAA_BBB_PRU_DAQ_Cape
NOAA_BBB_PRU_DAQ_Cape
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))
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.
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.
//******************************************************************************
//
// 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)
{
...
}
/**
* @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)
{
...
}
There are a lot of struct
s 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 struct
s?
This function just wraps the function close
.
In the function int UDP_Read_Data(int fd, int i);
, the input parameter i
is never used and can be removed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.