//void t_Tick(object sender, EventArgs e)
        //{
        //    if ((tilt > 78.2 || tilt < -78.2) && tilt != 0)
        //        opT = opT * -1;

        //    if ((pitch > 78.2 || pitch < -78.2) && pitch != 0)
        //        opP = opP * -1;
        //    if ((degree > 359.2 || degree < 0.8) && degree != 0)
        //        opD = opD * -1;


        //    pitch = pitch + opP * 0.8;
        //    tilt = tilt + opT * 0.5;
        //    degree = degree + opD * 0.8;

        //    pictureBox1.Image = Compass.DrawCompass(degree, pitch, 80, tilt, 80, pictureBox1.Size);
        //}

        void Form1_Resize(object sender, EventArgs e)
        {
            pictureBox1.Image = Compass.DrawCompass(degree, pitch, 80, tilt, 80, pictureBox1.Size);
        }