Example #1
0
        public void Test_Quickstart_Demo()
        {
            var wspr = new WsprSharp.WsprTransmission("AJ4VD", "EL89", 3);

            Console.WriteLine("Encoded Bytes:");
            Console.WriteLine(string.Join(" ", wspr.Message));

            Console.WriteLine("Transmission Frequency:");
            Console.WriteLine(string.Join(" ", wspr.Levels));
        }
Example #2
0
        private void Recalculate()
        {
            var wspr = new WsprSharp.WsprTransmission(tbCallsign.Text, tbLocation.Text, double.Parse(cbPower.Text));

            if (wspr.IsValid == false)
            {
                tbMessage.Text = "invalid input";
                rtbLevels.Text = "invalid input";
                return;
            }

            tbMessage.Text    = wspr.GetMessageString();
            rtbLevels.Text    = wspr.GetLevelsString();
            pictureBox1.Image = WsprImage.MakeSpectrogram(wspr.Levels);
        }