Skip to content

Commit

Permalink
minor change of the main to display only Tz
Browse files Browse the repository at this point in the history
  • Loading branch information
aightech committed Mar 1, 2023
1 parent abb061e commit ad6aa13
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,23 @@ int main(void)
lsl::stream_outlet outlet_sample(info_sample);
std::vector<double> sample(nb_channels);
std::cout << "[INFOS] Now sending data... " << std::endl;

for(int i =0;;i++)
int dj=10;
double v=0;
for(int j =0;;j++)
{
if(sensor.has_new_data())
{
for(unsigned i = 0; i < nb_channels; i++)
{
sample[i] = sensor.get_FT(i);
if(i%1000==0)
printf("%.3f\t", sample[i]);
// if(j%dj==0)
// printf("%.3f\t", sample[i]);
}
if(i%1000==0)
printf("\n");
double a=0.99;
v=a*v + (1-a)*sample[2];
if(j%dj==0)
printf("%.3f\n", v);
//printf("\n");
outlet_sample.push_sample(sample);
}
}
Expand Down

0 comments on commit ad6aa13

Please sign in to comment.