Changeset 17215 for trunk/FACT++


Ignore:
Timestamp:
10/11/13 15:59:20 (11 years ago)
Author:
tbretz
Message:
Now feedback has a dedicated state to check whether is is calibrated - use that.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Startup.js

    r17187 r17215  
    245245var diff = (now-age)/3600000;
    246246
     247var fb_state = dim.state("FEEDBACK").index;
     248
    247249// !data_calibration.data: FEEDBACK might just be freshly
    248250// started and will not yet serve this service.
    249 if (data_calibration.data==null || (diff>8 && now.getHours()>16))
    250 {
    251     if (data_calibration.data==null)
    252         console.out("No BIAS crate calibration avaliable: New calibration needed.");
     251if (fb_state<5 || (diff>8 && now.getHours()>16))
     252{
     253    if (fb_state<5)
     254        console.out("No BIAS crate calibration available: New calibration needed.");
    253255    else
    254256        console.out("Last BIAS crate calibration taken at "+age.toUTCString()+": New calibration needed.");
     
    262264// Crosscheck all states
    263265// ================================================================
     266
     267// FIXME: Check if there is a startup shceduled, if not do not force
     268// drive to be switched on
    264269
    265270var table =
Note: See TracChangeset for help on using the changeset viewer.