Skip to content

Commit

Permalink
feat (vehicle): update TakeOff command logic for ArduQuadPlaneClient
Browse files Browse the repository at this point in the history
  • Loading branch information
asv-soft-u01 committed Aug 22, 2024
1 parent 54b193e commit 5934db5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public override Task DoRtl(CancellationToken cancel = default)

public override async Task TakeOff(double altInMeters, CancellationToken cancel = default)
{
IVehicleMode mode = ArduQuadPlaneMode.Guided;
await EnsureInGuidedMode(cancel).ConfigureAwait(false);

await Position.ArmDisarm(true, cancel).ConfigureAwait(false);
await Position.TakeOff(altInMeters, cancel).ConfigureAwait(false);
}

public override IEnumerable<IVehicleMode> AvailableModes { get; }
Expand Down

0 comments on commit 5934db5

Please sign in to comment.