Пример #1
0
        public void Load()
        {
            RovioAPI           api       = rovio.API;
            MovementController movement  = api.Movement;
            CameraController   camera    = api.Camera;
            RovioStatusReport  report    = movement.GetReport();
            RovioMcuReport     mcuReport = movement.GetMCUReport();
            Dictionary <FlashParameters, Int32> flashParameters = movement.ReadAllParameters();


            this.Name     = api.GetName();
            this.DateTime = api.GetTime();

            this.MaintainAspectRatio = RovioAPI.GetBoolean(flashParameters[FlashParameters.MaintainAspectRatio]);

            ///// <summary>
            ///// i_LR
            ///// </summary>
            //latency = 4,

            this.PlayerType = (VideoPlayers)flashParameters[FlashParameters.video_player];
            ///// <summary>
            ///// i_UPnP  upnp just enabled
            ///// </summary>
            //upnp_just_enabled = 6,
            ///// <summary>
            ///// i_SS    show status
            ///// </summary>
            //show_online_status = 7,
            ///// <summary>
            ///// i_MIIP1  manual ip
            ///// </summary>
            //manual_internetip = 8,
            ///// <summary>
            ///// i_MIIP2   manual ip
            ///// </summary>
            //manual_internetip2 = 9,
            ///// <summary>
            ///// i_VIA    verify internet access
            ///// </summary>
            //net_verify_access = 10,
            this.FirmwareAlert = RovioAPI.GetBoolean(
                flashParameters[FlashParameters.firmware_alert]);
            ///// <summary>
            ///// i_AVF    auto set video frequency
            ///// </summary>
            //video_freq = 12,

            this.IrDetectEnabled = ((report.Flags & RovioFlags.IRDetectorActivated) == RovioFlags.IRDetectorActivated);

            this.HeadLight  = mcuReport.HeadLight;
            this.BlueLights = (BlueLightState)RovioAPI.GetByte(flashParameters[FlashParameters.BlueLights], (byte)BlueLightState.All);
            this.NightMode  = (NightMode)RovioAPI.GetByte(flashParameters[FlashParameters.NightMode], (byte)NightMode.Normal);

            this.SpeakerVolume    = report.speaker_volume;
            this.MicrophoneVolume = report.mic_volume;

            groupVideo.Load(flashParameters, report, mcuReport);
            groupMovement.Load(flashParameters, report, mcuReport);
            groupMail.Load(flashParameters, report, mcuReport);
        }
Пример #2
0
 public ManualDriver(MovementController rovio)
 {
     this.rovio = rovio;
 }
Пример #3
0
 public ManualDriver(MovementController rovio)
 {
     this.rovio = rovio;
 }