File size: 1,160 Bytes
c58c1ec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
{
"id": 1234,
"prompt": "get the simulator ready",
"rewritten_intent": "from 'tello_sim' library import 'Simulator'",
"snippet": "from tello_sim import Simulator",
}
{
"id": 5678,
"prompt": "assign a drone in the simulator",
"rewritten_intent": "assign 'my_drone'to a 'Simulator' class",
"snippet": "my_drone = Simulator()"
}
{
"id": 1213,
"prompt": "takeoff the drone",
"rewritten_intent": "use the 'takeoff()' method on 'my_drone'",
"snippet": "my_drone.takeoff()",
}
{
"id": 1415,
"prompt": "move the drone forward for n units",
"rewritten_intent": "use the 'forward()' method on 'my_drone' for 'n' units to be provided by the user",
"snippet": "n=int(input("enter the no of units that the drone must move forward")) my_drone.forward(n)",
}
{
"id": 1516,
"prompt": "move the drone clockwise for n units",
"rewritten_intent": "use the 'cw()' method on 'my_drone' for 'n' units to be used as input from user",
"snippet": "n=int(input("enter the no of units that the drone must move clockwise")) my_drone.cw(n)",
}
{
"id": 1718,
"prompt": "land the drone",
"rewritten_intent": "use the 'land()' method on 'my_drone'",
"snippet": "my_drone.land()",
}
|