Unverified Commit da220bbe authored by Giuseppe Carboni's avatar Giuseppe Carboni Committed by GitHub
Browse files

Fix #888, fixed AntennaBoss SkydipRange sscanf (#889)

parent de02d188
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -97,7 +97,7 @@ void CConfiguration::init(maci::ContainerServices *Services) throw (ComponentErr
	_GET_STRING_ATTRIBUTE("SkydipElevationRange","The skydip elevation range is (degrees):",temp);
	_GET_STRING_ATTRIBUTE("SkydipElevationRange","The skydip elevation range is (degrees):",temp);
	_GET_STRING_ATTRIBUTE("CoordinatesFilename", "The text file path in which the received coordinates will be written:", m_coordinatesFile);
	_GET_STRING_ATTRIBUTE("CoordinatesFilename", "The text file path in which the received coordinates will be written:", m_coordinatesFile);


	if (sscanf((const char *)temp,"%lf-%lf",&m_skydipElDown,&m_skydipElUp)!=2) {
	if (sscanf((const char *)temp,"%lf %lf",&m_skydipElDown,&m_skydipElUp)!=2) {
		_EXCPT(ComponentErrors::CDBAccessExImpl,dummy,"CConfiguration::Init()");
		_EXCPT(ComponentErrors::CDBAccessExImpl,dummy,"CConfiguration::Init()");
		dummy.setFieldName("SkydipElevationRange");
		dummy.setFieldName("SkydipElevationRange");
		throw dummy;
		throw dummy;
+9 −9
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@
             GapTime="200000"
             GapTime="200000"
             CoordinateIntegration="1000000"
             CoordinateIntegration="1000000"
             CutOffElevation="70.0"
             CutOffElevation="70.0"
	     	 SkydipElevationRange="15.0-90.0"
             SkydipElevationRange="15.0 90.0"
             MountInstance="ANTENNA/Mount"
             MountInstance="ANTENNA/Mount"
             ObservatoryInterface="IDL:alma/Antenna/Observatory:1.0" 
             ObservatoryInterface="IDL:alma/Antenna/Observatory:1.0" 
             PointingModelInstance="ANTENNA/PointingModel"
             PointingModelInstance="ANTENNA/PointingModel"
+9 −9
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@
             GapTime="200000"
             GapTime="200000"
             CoordinateIntegration="1000000"
             CoordinateIntegration="1000000"
             CutOffElevation="70.0"
             CutOffElevation="70.0"
	     	 SkydipElevationRange="15.0-90.0"
             SkydipElevationRange="15.0 90.0"
             MountInstance="ANTENNA/Mount"
             MountInstance="ANTENNA/Mount"
             ObservatoryInterface="IDL:alma/Antenna/Observatory:1.0" 
             ObservatoryInterface="IDL:alma/Antenna/Observatory:1.0" 
             PointingModelInstance="ANTENNA/PointingModel"
             PointingModelInstance="ANTENNA/PointingModel"
+9 −9
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@
             GapTime="200000"
             GapTime="200000"
             CoordinateIntegration="1000000"
             CoordinateIntegration="1000000"
             CutOffElevation="70.0"
             CutOffElevation="70.0"
	     	 SkydipElevationRange="15.0-90.0"
             SkydipElevationRange="15.0 90.0"
             MountInstance="ANTENNA/Mount"
             MountInstance="ANTENNA/Mount"
             ObservatoryInterface="IDL:alma/Antenna/Observatory:1.0" 
             ObservatoryInterface="IDL:alma/Antenna/Observatory:1.0" 
             PointingModelInstance="ANTENNA/PointingModel"
             PointingModelInstance="ANTENNA/PointingModel"
+9 −9
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@
             GapTime="200000"
             GapTime="200000"
             CoordinateIntegration="1000000"
             CoordinateIntegration="1000000"
             CutOffElevation="70.0"
             CutOffElevation="70.0"
	     	 SkydipElevationRange="15.0-90.0"
             SkydipElevationRange="15.0 90.0"
             MountInstance="ANTENNA/Mount"
             MountInstance="ANTENNA/Mount"
             ObservatoryInterface="IDL:alma/Antenna/Observatory:1.0" 
             ObservatoryInterface="IDL:alma/Antenna/Observatory:1.0" 
             PointingModelInstance="ANTENNA/PointingModel"
             PointingModelInstance="ANTENNA/PointingModel"
Loading