Esempio n. 1
0
        public bool Initialize()
        {
            if (isConnected)
            {
                simulator.StartNotification_Button(this.Recv_Button);
                simulator.StartNotification_StandardID(this.Recv_StandardId);
                simulator.StartNotification_PositionID(this.Recv_PositionId);
                simulator.StartNotification_StandardIDMissed(this.Recv_StandardIdMissed);
                simulator.StartNotification_PositionIDMissed(this.Recv_PositionIdMissed);

                simulator.StartNotification_MotionSensor(this.Recv_MotionSensor);

                simulator.StartNotification_TargetMove(this.Recv_TargetMove);
                simulator.StartNotification_MultiTargetMove(this.Recv_MultiTargetMove);

                simulator.StartNotification_MotorSpeed(this.Recv_MotorSpeed);
                simulator.StartNotification_MagnetState(this.Recv_MagnetState);
                simulator.StartNotification_MagneticForce(this.Recv_MagneticForce);
                simulator.StartNotification_Attitude(this.Recv_AttitudeEulers, this.Recv_AttitudeQuaternion);

                simulator.StartNotification_ConfigMotorRead(this.Recv_ConfigMotorRead);
                simulator.StartNotification_ConfigIDNotification(this.Recv_ConfigIDNotification);
                simulator.StartNotification_ConfigIDMissedNotification(this.Recv_ConfigIDMissedNotification);
                simulator.StartNotification_ConfigMagneticSensor(this.Recv_ConfigMagneticSensor);
                simulator.StartNotification_ConfigAttitudeSensor(this.Recv_ConfigAttitudeSensor);

                return(true);
            }
            return(false);
        }