Skip to content

Commit

Permalink
removed git conflict msg
Browse files Browse the repository at this point in the history
  • Loading branch information
GarrettWarren committed Sep 4, 2018
1 parent d6080c6 commit 75a0962
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions book/doc-sky/15-project3-pidcontrollers/50-position-control.md
Expand Up @@ -13,19 +13,18 @@ This [video](https://www.youtube.com/embed/WTohnsKs7dU) demonstrates the drone d
Then we turn off the position hold so you can see it drift again, and then turn it on again at the end and land. You can tell when it is turned on because we move the drone back to the center of the flight area before each hold.

## Problem 1: Flying with Velocity Control
First, you are going to experiment with flying your drone in velocity control and controlling its motion with the keyboard keys. Based on observations and knowledge of the controllers, you will then explain the inner workings of the velocity PIDs in your own words.
First, you are going to experiment with flying your drone in velocity control and controlling its motion with the keyboard keys. Based on observations and knowledge of the controllers, you will then explain the inner workings of the velocity PIDs in your own words.

**Setup**
Prepare your drone to fly over a highly textured planar surface. Make sure there is space for the drone to fly around.
**Excercise**
Fly your drone in velocity control (the default control) and make sure there is room to fly to the right. Press and hold 'L' and observe the drone's motion, and release 'L' to stop the drone from moving.
**Setup**
Prepare your drone to fly over a highly textured planar surface. Make sure there is space for the drone to fly around.
**Excercise**
Fly your drone in velocity control (the default control) and make sure there is room to fly to the right. Press and hold 'L' and observe the drone's motion, and release 'L' to stop the drone from moving.

1. Explain what the following key terms are in this controller, and how they change to cause the drone to move when you press 'L' and stop when you release: setpoint, error, control variable, process variable, proportional term, integral term, derivative term. We are looking only for a higher level description to demonstrate understanding of the PID controllers.
2. Try flying in velocity mode over a blank white poster board. Be careful! What do you notice about the drone's behavior, and what do you suspect causes this?
1. Explain what the following key terms are in this controller, and how they change to cause the drone to move when you press 'L' and stop when you release: setpoint, error, control variable, process variable, proportional term, integral term, derivative term. We are looking only for a higher level description to demonstrate understanding of the PID controllers.
2. Try flying in velocity mode over a blank white poster board. Be careful! What do you notice about the drone's behavior, and what do you suspect causes this?


## Problem 2: Flying with Position Control
<<<<<<< HEAD
Now you are going to fly your drone in position control and experiment with controlling it's motion with the keyboard keys. Based on observations and knowledge of the controllers, you will then explain the innerworkings of the position PIDs in your own words.
**Setup**
Prepare your drone to fly over a highly textured planar surface. Make sure there is space for the drone to fly around.
Expand All @@ -35,14 +34,13 @@ Prepare your drone to fly over a highly textured planar surface. Make sure there
3. While flying in position control, make sure there is room for the drone to fly to the right and then take note of the desired position in \`4 of the screen. Now press the 'L' key in the user interface and note the new desired x-position of the drone; it should be 0.1m to the right of the drone's last position. Explain what the following key terms are in the outter loop position controller, and how they change to cause the drone to move and stop 0.1m to the right after you press 'L' in position control: setpoint, error, control variable, process variable, proportional term, integral term, derivative term. We are looking only for a higher level description to demonstrate understanding of cascaded PID controllers.
4. Try flying in position control over a uniform surface such as the floor in 121, or unpatterned carpet. Echo the state of the drone by typing `rostopic echo /pidrone/state` into an empty window in the screen. Note the position data, and explain your observations of how well the drone able to estimate it's x and y positions? How long is it able to hold position? Does the drone move correctly when you use the arrow keys?
=======
Now you are going to fly your drone in position control and experiment with controlling its motion with the keyboard keys. Based on observations and knowledge of the controllers, you will then explain the inner workings of the position PIDs in your own words.
**Setup**
Prepare your drone to fly over a highly textured planar surface. Make sure there is space for the drone to fly around.
**Exercises**
1. Engage position hold using the procedure described above. Observe the drone's behavior. How is it different from just velocity control?
2. How long are you able to hold position? Ideally you should be able to do this in one spot for an entire battery. If not, try re-tuning your I-term preloads above. If you're flying on the power supply instead of a battery, the drone should stay in place indefinitely, but you can stop it after 5 minutes.
3. While flying in position control, make sure there is room for the drone to fly to the right and then take note of the desired position in \`4 of the screen. Now press the 'L' key in the user interface and note the new desired x-position of the drone; it should be 0.1m to the right of the drone's last position. Explain what the following key terms are in the outer loop position controller, and how they change to cause the drone to move and stop 0.1m to the right after you press 'L' in position control: setpoint, error, control variable, process variable, proportional term, integral term, derivative term. We are looking only for a higher level description to demonstrate understanding of cascaded PID controllers.
Now you are going to fly your drone in position control and experiment with controlling its motion with the keyboard keys. Based on observations and knowledge of the controllers, you will then explain the inner workings of the position PIDs in your own words.
**Setup**
Prepare your drone to fly over a highly textured planar surface. Make sure there is space for the drone to fly around.
**Exercises**
1. Engage position hold using the procedure described above. Observe the drone's behavior. How is it different from just velocity control?
2. How long are you able to hold position? Ideally you should be able to do this in one spot for an entire battery. If not, try re-tuning your I-term preloads above. If you're flying on the power supply instead of a battery, the drone should stay in place indefinitely, but you can stop it after 5 minutes.
3. While flying in position control, make sure there is room for the drone to fly to the right and then take note of the desired position in \`4 of the screen. Now press the 'L' key in the user interface and note the new desired x-position of the drone; it should be 0.1m to the right of the drone's last position. Explain what the following key terms are in the outer loop position controller, and how they change to cause the drone to move and stop 0.1m to the right after you press 'L' in position control: setpoint, error, control variable, process variable, proportional term, integral term, derivative term. We are looking only for a higher level description to demonstrate understanding of cascaded PID controllers.
4. Try flying in position control over a uniform surface such as the floor in 121, or unpatterned carpet. Echo the state of the drone by typing `rostopic echo /pidrone/state` into an empty window in the screen. Note the position data, and explain your observations of how well the drone is able to estimate its position. How long is it able to hold position? Does the drone move correctly when you use the arrow keys?
>>>>>>> 379b07bda0e6b9611d2dcb2d2dbf1dcfd236fd29

Take a one minute video of your drone flying in velocity control, and then engage position control. *Submit this video in Github Classroom as 'postion_control'*

0 comments on commit 75a0962

Please sign in to comment.