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; }
/// <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(""); }
/// <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 ""; }
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; }