Struct dji_onboard::Task
[−]
[src]
pub struct Task { pub cmd: Command, pub execute_at: Option<Instant>, pub retry: isize, pub timeout: Duration, pub oneway: bool, pub auto: bool, pub dead: bool, }
Fields
cmd: Command
execute_at: Option<Instant>
retry: isize
timeout: Duration
oneway: bool
auto: bool
dead: bool
Methods
impl Task
[src]
fn is_rc_task(&self) -> bool
fn is_waypoint_task(&self) -> bool
fn name(&self) -> &'static str
fn build() -> TaskBuilder
fn activate(app_id: u32) -> Task
fn get_version() -> Task
fn obtain_control(obtain: bool) -> Task
fn change_flight_mode(mode: FlightControlMode) -> Task
fn get_switch_result(seq: u8) -> Task
fn movement(flag: u8, x: f32, y: f32, z: f32, yaw: f32) -> Task
fn arm(a: bool) -> Task
fn take_photo() -> Task
fn start_video() -> Task
fn stop_video() -> Task
fn set_gimbal_rate(yaw: i16, roll: i16, pitch: i16) -> Task
fn set_gimbal_angle(yaw: i16, roll: i16, pitch: i16, duration: u8) -> Task
fn waypoint_init(param: WaypointInit) -> Task
fn waypoint_upload(param: WaypointData) -> Task
fn waypoint_start() -> Task
fn waypoint_stop() -> Task
fn waypoint_pause(pause: bool) -> Task
fn waypoint_get_idle_speed() -> Task
fn waypoint_set_idle_speed(speed: f32) -> Task
fn rc_enable() -> Task
fn rc_disable() -> Task
fn rc_data(data: RcData) -> Task
fn return_home_using_waypoint(id: &str) -> Result<Vec<Task>>
fn parse_waypoint_file(name: &str, delta: f32) -> Result<JsonValue>
fn gen_waypoint_task(arg: JsonValue) -> Result<Vec<Task>>
fn gen_task(name: &str, arg: JsonValue) -> Result<Task>
Trait Implementations
impl Clone for Task
[src]
fn clone(&self) -> Task
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more