static void main_run_from_file(int file_descriptor, struct raw_log_entry first_entry){
  struct raw_log_entry e = first_entry;
  uint8_t read_ok = 1;
  int t = 10*(int)(1+e.time*0.1);
  while (read_ok) {
    if(e.time>t){
      printf("%6.2fs %6i\n", e.time, entry_counter);
      t += 10;
    }
    if ((e.time<68.48)||(e.time>68.51)){
      print_estimator_state(e.time);
      main_run_ins(e.message.valid_sensors);
    } 
    e = read_raw_log_entry(file_descriptor, &read_ok);
  }
}
static void main_periodic(int my_sig_num __attribute__ ((unused))) {
	
	counter++;
	if(counter%128 == 0){
		printf("%6.2f s\t", (double)counter/512);
		if(counter%512 == 0){
			printf("\n");
		}
	}

  //uint8_t data_valid = main_dialog_with_io_proc();
  main_dialog_with_io_proc();
  #if RUN_FILTER
  main_run_ins(data_valid);
  #endif
  //main_rawlog_dump(data_valid);

}