Exemplo n.º 1
0
 public VideoSection(DroneConfiguration configuration)
     : base(configuration, "video")
 {
     CamifFps        = new ReadOnlyItem <int>(this, "camif_fps");
     CodecFps        = new ActiveItem <int>(this, "codec_fps");
     CamifBuffers    = new ReadOnlyItem <int>(this, "camif_buffers");
     Trackers        = new ReadOnlyItem <int>(this, "num_trackers");
     Codec           = new ActiveItem <VideoCodecType>(this, "video_codec");
     Slices          = new ActiveItem <int>(this, "video_slices");
     LiveSocket      = new ActiveItem <int>(this, "video_live_socket");
     StorageSpace    = new ReadOnlyItem <int>(this, "video_storage_space");
     Bitrate         = new ActiveItem <int>(this, "bitrate");
     MaxBitrate      = new ActiveItem <int>(this, "max_bitrate");
     BitrateCtrlMode = new ActiveItem <VideoBitrateControlMode>(this, "bitrate_ctrl_mode");
     BitrateStorage  = new ActiveItem <int>(this, "bitrate_storage");
     Channel         = new ActiveItem <VideoChannelType>(this, "video_channel");
     OnUsb           = new ActiveItem <bool>(this, "video_on_usb");
     FileIndex       = new ActiveItem <int>(this, "video_file_index");
 }
Exemplo n.º 2
0
 public ControlSection(DroneConfiguration configuration)
     : base(configuration, "control")
 {
     accs_offset             = new ReadOnlyItem <string>(this, "accs_offset");
     accs_gains              = new ReadOnlyItem <string>(this, "accs_gains");
     gyros_offset            = new ReadOnlyItem <string>(this, "gyros_offset");
     gyros_gains             = new ReadOnlyItem <string>(this, "gyros_gains");
     gyros110_offset         = new ReadOnlyItem <string>(this, "gyros110_offset");
     gyros110_gains          = new ReadOnlyItem <string>(this, "gyros110_gains");
     magneto_offset          = new ReadOnlyItem <string>(this, "magneto_offset");
     magneto_radius          = new ReadOnlyItem <float>(this, "magneto_radius");
     gyro_offset_thr_x       = new ReadOnlyItem <float>(this, "gyro_offset_thr_x");
     gyro_offset_thr_y       = new ReadOnlyItem <float>(this, "gyro_offset_thr_y");
     gyro_offset_thr_z       = new ReadOnlyItem <float>(this, "gyro_offset_thr_z");
     pwm_ref_gyros           = new ReadOnlyItem <int>(this, "pwm_ref_gyros");
     osctun_value            = new ReadOnlyItem <int>(this, "osctun_value");
     osctun_test             = new ReadOnlyItem <bool>(this, "osctun_test");
     control_level           = new ActiveItem <int>(this, "control_level");
     euler_angle_max         = new ActiveItem <float>(this, "euler_angle_max");
     altitude_max            = new ActiveItem <int>(this, "altitude_max");
     altitude_min            = new ActiveItem <int>(this, "altitude_min");
     control_iphone_tilt     = new ActiveItem <float>(this, "control_iphone_tilt");
     control_vz_max          = new ActiveItem <float>(this, "control_vz_max");
     control_yaw             = new ActiveItem <float>(this, "control_yaw");
     outdoor                 = new ActiveItem <bool>(this, "outdoor");
     flight_without_shell    = new ActiveItem <bool>(this, "flight_without_shell");
     autonomous_flight       = new ReadOnlyItem <bool>(this, "autonomous_flight"); // obsolete
     manual_trim             = new ActiveItem <bool>(this, "manual_trim");
     indoor_euler_angle_max  = new ActiveItem <float>(this, "indoor_euler_angle_max");
     indoor_control_vz_max   = new ActiveItem <float>(this, "indoor_control_vz_max");
     indoor_control_yaw      = new ActiveItem <float>(this, "indoor_control_yaw");
     outdoor_euler_angle_max = new ActiveItem <float>(this, "outdoor_euler_angle_max");
     outdoor_control_vz_max  = new ActiveItem <float>(this, "outdoor_control_vz_max");
     outdoor_control_yaw     = new ActiveItem <float>(this, "outdoor_control_yaw");
     flying_mode             = new ActiveItem <int>(this, "flying_mode");
     hovering_range          = new ActiveItem <int>(this, "hovering_range");
     flight_anim             = new FlightAnimationItem(this, "flight_anim");
 }
Exemplo n.º 3
0
 public UserboxSection(DroneConfiguration configuration)
     : base(configuration, "userbox")
 {
     UserboxCmd = new ActiveItem <string>(this, "userbox_cmd");
 }
Exemplo n.º 4
0
 public LedsSection(DroneConfiguration configuration)
     : base(configuration, "leds")
 {
     Animation = new ActiveItem <string>(this, "leds_anim");
 }