Changeset 18655


Ignore:
Timestamp:
10/15/16 19:41:26 (8 years ago)
Author:
tbretz
Message:
Do not try to re-position when parking and allow for a larger deviation (default: +-0.5deg)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/drivectrl.cc

    r18597 r18655  
    18821882    Acceleration fAccMax;
    18831883    double fMaxPointingResidual;
     1884    double fMaxParkingResidual;
    18841885    double fPointingVelocity;
    18851886
     
    26202621            // Check which axis should still be moved
    26212622            Encoder cd = dist;              // [rev]
    2622             cd *= 1./fMaxPointingResidual;  // Scale to units of the maximum residual
     2623            cd *= T::GetCurrentState()==State::kParking ? 1./fMaxParkingResidual : 1./fMaxPointingResidual;  // Scale to units of the maximum residual
    26232624            cd = cd.Abs();
    26242625
     
    29522953        fParkingPos.zd = conf.Has("parking-pos.zd") ? conf.Get<double>("parking-pos.zd") : 90;
    29532954        fParkingPos.az = conf.Has("parking-pos.az") ? conf.Get<double>("parking-pos.az") :  0;
     2955        fMaxParkingResidual = conf.Get<double>("parking-pos.residual");
    29542956
    29552957        if (!CheckRange(fParkingPos))
     
    30883090        ("parking-pos.zd",           var<double>(101),          "Parking position zenith angle in sky pointing coordinates [deg]")
    30893091        ("parking-pos.az",           var<double>(0),            "Parking position azimuth angle in sky pointing coordinates [deg]")
     3092        ("parking-pos.residual",     var<double>(0.5/360),      "Maximum residual for a parking position [revolutions]")
    30903093        ("acceleration.max.az",      var<double>(0.03),         "Maximum allowed acceleration value for azimuth axis")
    30913094        ("acceleration.max.zd",      var<double>(0.09),         "Maximum allowed acceleration value for zenith axis")
Note: See TracChangeset for help on using the changeset viewer.