internal override void Load(Dictionary <FlashParameters, Int32> flashParameters, RovioStatusReport report, RovioMcuReport mcuReport)
            {
                RovioAPI api = owner.rovio.API;

                this.brightness       = report.brightness;
                this.resolutionId     = report.ResolutionId;
                this.videoCompression = report.VideoCompression;
                this.frameRate        = report.frame_rate;
                this.acFrequency      = report.ACFrequency;

                this.modified = false;
            }
Example #2
0
        /// <summary>
        /// Change camera sensor’s settings.
        /// </summary>
        /// <param name="Frequency">50 – 50Hz, 60 – 60Hz, 0 – Auto detect</param>
        /// <returns></returns>
        public string SetCamera(ACFrequency frequency)
        {
            int number = 50;

            switch (frequency)
            {
            case ACFrequency._50Hz:
                number = 50;
                break;

            case ACFrequency._60Hz:
                number = 60;
                break;

            case ACFrequency.AutoDetect:
                number = 0;
                break;
            }
            RovioResponse response = rovio.Request("SetCamera.cgi?Frequency=" + number.ToString());

            return("");
        }
Example #3
0
 /// <summary>
 /// Change camera sensor’s settings.
 /// </summary>
 /// <param name="Frequency">50 – 50Hz, 60 – 60Hz, 0 – Auto detect</param>
 /// <returns></returns>
 public string SetCamera(ACFrequency frequency)
 {
     int number = 50;
     switch (frequency)
     {
         case ACFrequency._50Hz:
             number = 50;
             break;
         case ACFrequency._60Hz:
             number = 60;
             break;
         case ACFrequency.AutoDetect:
             number = 0;
             break;
     }
     RovioResponse response = rovio.Request("SetCamera.cgi?Frequency=" + number.ToString());
     return "";
 }
Example #4
0
            internal override void Load(Dictionary<FlashParameters, Int32> flashParameters, RovioStatusReport report, RovioMcuReport mcuReport)
            {
                RovioAPI api = owner.rovio.API;

                this.brightness = report.brightness;
                this.resolutionId = report.ResolutionId;
                this.videoCompression = report.VideoCompression;
                this.frameRate = report.frame_rate;
                this.acFrequency = report.ACFrequency;

                this.modified = false;
            }