ulvis.paste.net

Paste Search Dynamic
Recent pastes
processing rate
  1. #include <stdio.h>
  2. #include "stdint.h"
  3.  
  4.  
  5. // Amount of time to process
  6. int main(void) {
  7.                 // Processing and sampling rate attributes
  8.         // Specifies the expected sampling rate
  9.         static const uint32_t ACCEL_SAMPLING_RATE_HZ = 200;
  10.         // Specifies the processing rate of the algorithm
  11.         static const uint32_t PROCESSING_RATE_HZ = 10;
  12.         // Specifies the processing interval of the algorithm
  13.         static const uint32_t PROCESSING_INTERVAL_MS = 1000 / 10;
  14.         // This will specify how many samples will be added together to ache
  15.         static const uint32_t DOWNSAMPLING_RATIO = 200 / 10;
  16.  
  17.         // Low motion detection attributes
  18.         // Low coefficient for the single pole IIR filter
  19.         static uint32_t LOW_MOTION_LOW_PASS_COEFFICIENT = 256;
  20.         // Specifies how the threshold for the low noise / off body detection
  21.         static uint32_t LOW_MOTION_THRESHOLD = 1000;
  22. static uint32_t MEAN_WINDOW = 1.7 * PROCESSING_RATE_HZ;
  23.         // your code goes here
  24.         printf("%u", MEAN_WINDOW);
  25.         return 0;
  26. }
  27.  
Parsed in 0.004 seconds