FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 3069 of file drivectrl.cc.

References Configuration::AddOptions(), po_bool(), and po_switch().

Referenced by main().

3070 {
3071  po::options_description control("Drive control options");
3072  control.add_options()
3073  ("quiet,q", po_bool(), "Disable debug messages")
3074  ("no-dim,d", po_switch(), "Disable dim services")
3075  ("addr,a", var<string>("sps:5357"), "Network address of cosy")
3076  ("verbosity,v", var<uint16_t>(0), "Vervosity level (0=off; 1=major updates; 2=most updates; 3=frequent updates)")
3077  ("pointing.model-file", var<string>()->required(), "Name of the file with the pointing model in use")
3078  ("pointing.max.zd", var<double>( 104.9), "Maximum allowed zenith angle in sky pointing coordinates [deg]")
3079  ("pointing.max.az", var<double>( 85.0), "Maximum allowed azimuth angle in sky pointing coordinates [deg]")
3080  ("pointing.min.zd", var<double>(-104.9), "Minimum allowed zenith angle in sky pointing coordinates [deg]")
3081  ("pointing.min.az", var<double>(-295.0), "Minimum allowed azimuth angle in sky pointing coordinates [deg]")
3082  ("pointing.max.residual", var<double>(1./32768), "Maximum residual for a pointing operation [revolutions]")
3083  ("pointing.velocity", var<double>(0.3), "Moving velocity when pointing [% max]")
3084  ("pointing.acceleration.az", var<double>(0.01), "Acceleration for azimuth axis for pointing operations")
3085  ("pointing.acceleration.zd", var<double>(0.03), "Acceleration for zenith axis for pointing operations")
3086  ("tracking.acceleration.az", var<double>(0.01), "Acceleration for azimuth axis during tracking operations")
3087  ("tracking.acceleration.zd", var<double>(0.01), "Acceleration for zenith axis during tracking operations")
3088  ("parking-pos.zd", var<double>(101), "Parking position zenith angle in sky pointing coordinates [deg]")
3089  ("parking-pos.az", var<double>(0), "Parking position azimuth angle in sky pointing coordinates [deg]")
3090  ("acceleration.max.az", var<double>(0.03), "Maximum allowed acceleration value for azimuth axis")
3091  ("acceleration.max.zd", var<double>(0.09), "Maximum allowed acceleration value for zenith axis")
3092  ("weather-timeout", var<uint16_t>(300), "Timeout [sec] for weather data (after timeout default values are used)")
3093  ("deviation-limit", var<uint16_t>(90), "Deviation limit in arcsec to get 'OnTrack'")
3094  ("deviation-count", var<uint16_t>(3), "Minimum number of reported deviation below deviation-limit to get 'OnTrack'")
3095  ("deviation-max", var<uint16_t>(180), "Maximum deviation in arcsec allowed to keep status 'OnTrack'")
3096  ("source-database", var<string>(), "Database link as in\n\tuser:password@server[:port]/database.")
3097  ("source", vars<string>(), "Additional source entry in the form \"name,hh:mm:ss,dd:mm:ss\"")
3098  ;
3099 
3100  conf.AddOptions(control);
3101 }
po::typed_value< bool > * po_switch()
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92
po::typed_value< bool > * po_bool(bool def=false)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: