/// <summary> /// Service Start /// </summary> protected override void Start() { //base.Start(); DirectoryInsert(); _imu = new CristaIMU(IMU_PORT, _imuDataPort); SpawnIterator(activateIMUIterator); Interleave mainInterleave = ActivateDsspOperationHandlers(); mainInterleave.CombineWith(new Interleave(new ExclusiveReceiverGroup( Arbiter.Receive<IMUData>(true, _imuDataPort, DataReceivedHandler)), new ConcurrentReceiverGroup())); // Add service specific initialization here. }
static void Main(string[] args) { CristaIMU imu = new CristaIMU("COM2"); imu.autoupdate(); }