![](/media/cache/group/arm_mbed.PNG.50x50_q85.png)
DreamForce 2013 Mini-Hack Challenge Project
Dependencies: ADXL345 USBDevice filter mbed
Fork of df-minihack-slingshot by
README.txt@5:2ee478a71b6b, 2013-11-04 (annotated)
- Committer:
- ansond
- Date:
- Mon Nov 04 17:39:12 2013 +0000
- Revision:
- 5:2ee478a71b6b
- Child:
- 7:991749350315
added instructions
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 5:2ee478a71b6b | 1 | Instructions: |
ansond | 5:2ee478a71b6b | 2 | |
ansond | 5:2ee478a71b6b | 3 | 1). Complete the “hands-on” exercises first |
ansond | 5:2ee478a71b6b | 4 | - Required to get setup with an mbed account and the compiler environment |
ansond | 5:2ee478a71b6b | 5 | |
ansond | 5:2ee478a71b6b | 6 | 2). Import the “df-2013-minihack-slingshot” project into your mbed project workspace |
ansond | 5:2ee478a71b6b | 7 | - Be sure to add and make current the “mbed LPC11U24” board as the current board |
ansond | 5:2ee478a71b6b | 8 | to compile to. |
ansond | 5:2ee478a71b6b | 9 | |
ansond | 5:2ee478a71b6b | 10 | 3). Examine main.cpp in your project |
ansond | 5:2ee478a71b6b | 11 | - In the top of the file, examine the “Mini-hack challenge” statement |
ansond | 5:2ee478a71b6b | 12 | - You will need to update potentiometer_value_to_degrees() per the instructions. |
ansond | 5:2ee478a71b6b | 13 | The function starts at or about line 129. |
ansond | 5:2ee478a71b6b | 14 | |
ansond | 5:2ee478a71b6b | 15 | A successful implementation will: |
ansond | 5:2ee478a71b6b | 16 | - Calculate a reasonable approximation of the sling angle to the sling body |
ansond | 5:2ee478a71b6b | 17 | - Utilize the sling angle to the overall angle that is used for the firing trajectory. |
ansond | 5:2ee478a71b6b | 18 | |
ansond | 5:2ee478a71b6b | 19 | Additional Details/Hints: |
ansond | 5:2ee478a71b6b | 20 | - If slingshot band is exactly 90° ( = 0°) to the slingshot body then the original |
ansond | 5:2ee478a71b6b | 21 | slingshot mouse location method may be used |
ansond | 5:2ee478a71b6b | 22 | |
ansond | 5:2ee478a71b6b | 23 | - If the slingshot band is not 90° to the slingshot body, then further refinement of the |
ansond | 5:2ee478a71b6b | 24 | mouse position should be made through calculating the relative angle between the |
ansond | 5:2ee478a71b6b | 25 | slingshot body and the slingshot band using the potentiometer |
ansond | 5:2ee478a71b6b | 26 | |
ansond | 5:2ee478a71b6b | 27 | - The relative angle is estimated by mapping ranges of values of the potentiometer to a |
ansond | 5:2ee478a71b6b | 28 | degree range. A median potentiometer value denotes that the sling band is 90 degrees |
ansond | 5:2ee478a71b6b | 29 | to the sling body. |
ansond | 5:2ee478a71b6b | 30 | |
ansond | 5:2ee478a71b6b | 31 | References: |
ansond | 5:2ee478a71b6b | 32 | - Original MBED slingshot cookbook: http://mbed.org/cookbook/Slingshot |
ansond | 5:2ee478a71b6b | 33 | - Project Source: http://mbed.org/teams/MBED_DEMOS/code/df-2013-minihack-slingshot/ |
ansond | 5:2ee478a71b6b | 34 | - Completed Code: http://mbed.org/teams/MBED_DEMOS/code/df-2013-minihack-slingshot-complete/ |