virtualStick method Null safety

Future<void> virtualStick(
  1. {required bool enabled,
  2. required double pitch,
  3. required double roll,
  4. required double yaw,
  5. required double verticalThrottle}
)

Update Virtual Stick flight controller data (via physical remote controller)

Control whether the virtual-stick mode is enabled, and the pitch, roll, yaw and verticalThrottle of the Virtual Stick flight controller. Available only when the drone is connected to the physical remote controller.

Implementation

static Future<void> virtualStick({
  required bool enabled,
  required double pitch,
  required double roll,
  required double yaw,
  required double verticalThrottle,
}) async {
  await _api?.virtualStick(
    enabled,
    pitch,
    roll,
    yaw,
    verticalThrottle,
  );
}