Code:
while(sun_angle.pan < 50)
{
    sun_angle.pan += 3*time_step;
    wait(1);
}



Why this shouldnt work? OR you dont want static offsets?