Skip to content

Commit

Permalink
Start on hill climb lab
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Aug 16, 2023
1 parent 3804174 commit e408822
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions docs/src/Hill.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Hill Climb
# 8 Hill Climb

The purpose of this exercise is to program the Pololu robot to execute a specified task, namely to climb a ramp, detect when it reaches the top, turn around, and drive back down the ramp, all without falling off the edge of the ramp.

**FIXME:** From chapter 8 of 3d edition.
## 8.1 Prelab

Review [Section 6.5, Line and bump sensors](https://www.pololu.com/docs/0J86/6.5) of the [Pololu 3pi+ 2040 robot User's Guide](https://www.pololu.com/docs/0J86).


Recall from the [Sensors](./Sensors.md) lab that you used an accelerometer to measure pitch and roll of the robot. How can you use those measurements to


**NOTE:** According to [Section 6.5, Line and bump sensors](https://www.pololu.com/docs/0J86/6.5) of the [Pololu 3pi+ 2040 robot User's Guide](https://www.pololu.com/docs/0J86), it is not practical to use the bump sensors in combination with the line sensors. Hence, in this lab, you will only use the line sensors.
2 changes: 1 addition & 1 deletion docs/src/Robot.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ Your task now is to use the [Bump](https://github.com/lf-lang/lf-3pi-template/bl

2. Instead of setting the power level of the motors, a better strategy might be to set a desired robot speed. How might you use the encoders to measure the speed? How might you use the speed measurement to control the speed? **Hint:** Section 2.4, Feedback Control, of [Lee and Seshia](https://leeseshia.org) might be useful.


3. What were your takeaways from the lab? What did you learn during the lab? Did any results in the lab surprise you?

0 comments on commit e408822

Please sign in to comment.