Simba Code:currentAngle := Round(rs_GetCompassAngleDegrees);
if InRange(currentAngle, 0, 5) or InRange(currentAngle, 355, 360) then
begin
newStart := startRad;
newEnd := endRad;
end else
begin
newStart := startRad - currentAngle;
newEnd := endRad - currentAngle;
end;
if newStart < 0 then
newStart := newStart + 360;
if newEnd < 0 then
newEnd := newEnd + 360;
FindColors(TPA, color, MMX1, MMY1, MMX2, MMY2);
FilterPointsPie(TPA, newStart, newEnd, 10, radius, MMCX, MMCY);
The code I have listed above should accurately adjust startRad & endRad..however, when I debug with DebugTPA after FilterPointsPie, it is returning the majority of the MM...
What am I missing?


Reply With Quote