using System; using System.Windows.Forms; namespace DXLog.net { public class Script : ScriptClass { // change line comments to test both byte orders for yaesu FT1000_MP // static byte[] FT1000_HexCMD = new byte[5] { 0x09, 0xFF, 0x00, 0x00, 0x06 }; //06 00 00 FF 09 static byte[] FT1000_HexCMDa = new byte[5] { 0x00, 0x00, 0xFF, 0x81, 0x09 }; //00 00 FF 81 09 static byte[] FT1000_HexCMDb = new byte[5] { 0x06, 0x00, 0x00, 0xFF, 0x09 }; //06 00 00 FF 09 FrmMain mainForm; public void Initialize(FrmMain main) { } public void Deinitialize() { } public void Main(FrmMain main, ContestData cdata, COMMain comMain) { int radioNumber = cdata.FocusedRadio; CATCommon radioObject = main.COMMainProvider.RadioObject(radioNumber); if (radioObject == null) { main.SetMainStatusText(String.Format("CAT object for radio {0} isn't available!", radioNumber)); return; } radioObject.SendCustomCommand(FT1000_HexCMDa); radioObject.SendCustomCommand(FT1000_HexCMDb); main.SetMainStatusText(String.Format("Radio {0} QSY 60 Hz up", radioNumber)); } } }