s3lsensor / snowfort

SnowFort: An open source wireless sensor network for infrastructure and environmental monitoring
http://www.snowfort.org
Other
6 stars 8 forks source link

add fs check for sensor #53

Closed yzliao closed 8 years ago

yzliao commented 10 years ago

We need to ensure that the sampling frequency (fs) is capable for the TDMA protocol. Need to avoid losing information.

E.g.

#ifdef SAMPLING_FREQ
#if ( SAMPLING_FREQ*DATA_SIZE/FRAMES_PER_SEC > MAX_PKT_PAYLOAD_SIZE*8 )
#error "Sampling frequency too high"
#endif
#endif /*SAMPLING_FREQ*/