I’d like to run the example that uses the Support Package for Parrot Drones to perform the basic flight operations. What’s the proc
Here is the MATLAB script. The drone is already connected to PC:
p = parrot();
takeoff(p);
pause (2);
land(p);
takeoff(p);
movement_step = 1;
while(movement_step <= 4 && p.BatteryLevel > 10)
moveforward(p, 2);
turn(p, deg2rad(90));
movement_step = movement_step + 1;
end
land(p);
takeoff(p);
move(p, 5, ‘Roll’, deg2rad(4), ‘RotationSpeed’, deg2rad(120));
land(p);
takeoff(p);
move(p, 5, ‘Pitch’, deg2rad(-4), ‘Roll’, deg2rad(4));
land(p);
clear p;Here is the MATLAB script. The drone is already connected to PC:
p = parrot();
takeoff(p);
pause (2);
land(p);
takeoff(p);
movement_step = 1;
while(movement_step <= 4 && p.BatteryLevel > 10)
moveforward(p, 2);
turn(p, deg2rad(90));
movement_step = movement_step + 1;
end
land(p);
takeoff(p);
move(p, 5, ‘Roll’, deg2rad(4), ‘RotationSpeed’, deg2rad(120));
land(p);
takeoff(p);
move(p, 5, ‘Pitch’, deg2rad(-4), ‘Roll’, deg2rad(4));
land(p);
clear p; Here is the MATLAB script. The drone is already connected to PC:
p = parrot();
takeoff(p);
pause (2);
land(p);
takeoff(p);
movement_step = 1;
while(movement_step <= 4 && p.BatteryLevel > 10)
moveforward(p, 2);
turn(p, deg2rad(90));
movement_step = movement_step + 1;
end
land(p);
takeoff(p);
move(p, 5, ‘Roll’, deg2rad(4), ‘RotationSpeed’, deg2rad(120));
land(p);
takeoff(p);
move(p, 5, ‘Pitch’, deg2rad(-4), ‘Roll’, deg2rad(4));
land(p);
clear p; script, matlab MATLAB Answers — New Questions









