Compare commits
No commits in common. "98e11c2443d4471d5d6f1319d589227aa9a17fa3" and "46e02c1d6d849d619e85b56a4487ba283ce818ab" have entirely different histories.
98e11c2443
...
46e02c1d6d
|
@ -36,16 +36,4 @@ void writePowerData(double powerArray[], int nCol){
|
|||
}
|
||||
}
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
void threadCalcul(){
|
||||
while(stopFlag == false){
|
||||
if(rawDataWriteFlag){
|
||||
pthread_mutex_lock(&mutex);
|
||||
while(power(nRow,nCol,period,timeBandwidth) == false){}
|
||||
pthread_mutex_unlock(&mutex);
|
||||
rawDataWriteFlag = true;
|
||||
delay(10);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,7 +3,5 @@
|
|||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
bool writeFlag = 0;
|
||||
|
||||
void clearRawData(int N);
|
||||
void writePowerData(double a[], int N);
|
|
@ -1,6 +1,5 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
extern bool rawDataWriteFlag , stopFlag;
|
||||
extern int nRow;
|
||||
extern int nCol;
|
||||
extern double freqEch;
|
||||
|
@ -8,4 +7,4 @@ extern double freqEch;
|
|||
extern int selectionCaptors[];
|
||||
extern int sizeSelectionArray;
|
||||
|
||||
extern bool flag;
|
||||
extern bool flag;
|
|
@ -6,7 +6,6 @@
|
|||
#include "power.h"
|
||||
#include "initialParameters.h"
|
||||
|
||||
bool rawDataWriteFlag = 0, stopFlag = 0;
|
||||
int nRow = 100000;
|
||||
int nCol = 9;
|
||||
double freqEch = 250;
|
||||
|
|
Loading…
Reference in a new issue