Subversion Repositories DIN Is Noise

Rev

Rev 1977 | Rev 2009 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1977 Rev 1978
Line 35... Line 35...
35
  alarmt &aa = alm[a];
35
  alarmt &aa = alm[a];
36
  if (aa(ui_clk())) {
36
  if (aa(ui_clk())) {
37
    aa.stop ();
37
    aa.stop ();
38
    a = !a;
38
    a = !a;
39
    double& ta = *t[a];
39
    double& ta = *t[a];
40
    ta = (*vt[a])(rndt[a]);
40
    if (rndt[a]) ta = (*vt[a])(1);
41
    if (a) ar.yes = 0; else ar.yes = 1;
41
    if (a) ar.yes = 0; else ar.yes = 1;
42
    alarmt& nxt = alm[a];
42
    alarmt& nxt = alm[a];
43
    nxt.triggert = ta;
43
    nxt.triggert = ta;
44
    nxt.start ();
44
    nxt.start ();
45
  }
45
  }
Line 55... Line 55...
55
  if (!yes && a) ar.setyes (1);
55
  if (!yes && a) ar.setyes (1);
56
}
56
}
57
57
58
std::istream& operator>> (std::istream& file, autopauset& ap) {
58
std::istream& operator>> (std::istream& file, autopauset& ap) {
59
  file >> ap.yes >> ap.rndt[0] >> ap.rndt[1];
59
  file >> ap.yes >> ap.rndt[0] >> ap.rndt[1];
-
 
60
  return file;
60
}
61
}
61
62
62
std::ostream& operator<< (std::ostream& file, autopauset& ap) {
63
std::ostream& operator<< (std::ostream& file, autopauset& ap) {
63
  file << ap.yes << spc << ap.rndt[0] << spc << ap.rndt[1] << spc;
64
  file << ap.yes << spc << ap.rndt[0] << spc << ap.rndt[1] << spc;
-
 
65
  return file;
64
}
66
}