View Issue Details

IDProjectCategoryView StatusLast Update
0001132SkyChart1-Softwarepublic13-05-06 14:32
Reporteraruangra Assigned ToPatrick Chevalley  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformAllOSAllOS VersionAll
Product Version3.7 SVN 
Target Version3.8Fixed in Version3.7 SVN 
Summary0001132: minor error in movescopeh command
DescriptionWhile reading through the code: fu_chart.pas

function Tf_chart.cmd_MoveScopeH(H,D:string):string;
var hh,dd,ra,de: double;
begin
hh:=StrToFloatDef(H,9999);
dd:=StrToFloatDef(D,9999);
if (abs(hh)<=180)and(abs(dd)<=90) then begin
 de:=deg2rad*dd;
 ra:=sc.cfgsc.CurST-deg2rad*hh;
 sc.cfgsc.TrackOn:=true;
 sc.cfgsc.TrackType:=6;
 sc.cfgsc.TrackName:=rsTelescope;
 sc.cfgsc.scopelock:=false;
 if sc.TelescopeMove(ra,de) then Refresh;
 result:=msgOK;
end
else result:=msgFailed+' out of range';
end;

Since hh is in Hours,
(abs(hh)<=180)and(abs(dd)<=90) should be
(hh<=24) and(hh>=0)and(abs(dd)<=90)

TagsNo tags attached.

Activities

Patrick Chevalley

13-02-09 11:00

administrator   ~0002444

I really do this command to accept H in degree.
But I agree it is more coherent with the others commands to use hours. I also add this in the documentation.

This is fixed by 2420:
http://sourceforge.net/p/skychart/code/2420/

Issue History

Date Modified Username Field Change
13-02-03 09:26 aruangra New Issue
13-02-09 11:00 Patrick Chevalley Note Added: 0002444
13-02-09 11:00 Patrick Chevalley Assigned To => Patrick Chevalley
13-02-09 11:00 Patrick Chevalley Status new => resolved
13-02-09 11:00 Patrick Chevalley Resolution open => fixed
13-02-09 11:00 Patrick Chevalley Fixed in Version 0.3.0 => 3.7 SVN
13-02-09 11:00 Patrick Chevalley Target Version 0.3.0 => 3.8
13-05-06 14:32 Patrick Chevalley Status resolved => closed