コード例 #1
0
 public static void forceSendGuidedPoint(
     MavLinkDrone drone, LatLong coord, double altitudeInMeters) {
   drone.notifyDroneEvent(DroneEventsType.GUIDEDPOINT);
   if (coord != null) {
     MavLinkCommands.setGuidedMode(
         drone, coord.getLatitude(), coord.getLongitude(), altitudeInMeters);
   }
 }
コード例 #2
0
 public static void forceSendGuidedPointAndVelocity(
     MavLinkDrone drone,
     LatLong coord,
     double altitudeInMeters,
     double xVel,
     double yVel,
     double zVel) {
   drone.notifyDroneEvent(DroneEventsType.GUIDEDPOINT);
   if (coord != null) {
     MavLinkCommands.sendGuidedPositionAndVelocity(
         drone, coord.getLatitude(), coord.getLongitude(), altitudeInMeters, xVel, yVel, zVel);
   }
 }
コード例 #3
0
 public void newGuidedVelocity(double xVel, double yVel, double zVel) {
   MavLinkCommands.sendGuidedVelocity(myDrone, xVel, yVel, zVel);
 }
コード例 #4
0
 public void newGuidedPosition(double latitude, double longitude, double altitude) {
   MavLinkCommands.sendGuidedPosition(myDrone, latitude, longitude, altitude);
 }