Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832 Servo mbed-rtos-edited mbed
Fork of NervousPuppySprintOne by
Diff: nervousPuppy.h
- Revision:
- 5:cbb5d7460309
- Parent:
- 4:2b47356f4b7d
- Child:
- 6:f854aa2f41e2
diff -r 2b47356f4b7d -r cbb5d7460309 nervousPuppy.h
--- a/nervousPuppy.h Thu Jan 15 17:01:47 2015 +0000
+++ b/nervousPuppy.h Mon Jan 19 13:31:42 2015 +0000
@@ -22,7 +22,7 @@
float getPlayerDistance();
void setPlayerDistance(float dist);
- float calculateAngle(string axis);
+ float calculateAngle(string issue);
void changePosition(string servo,float angle);
private:
@@ -30,9 +30,9 @@
Mutex lockForDistance; //Not sure why needed
float playerDistance, playerError;
bool scared, lonely;
- const float LONELY = 0.10f; //Placeholder number
- const float SCARED = 0.088f; //Placeholder number
- const float RADIUS = 2.0f; //Placeholder number
+ const float LONELY = 3.0f; //Placeholder number
+ const float SCARED = 20.0f; //Placeholder number
+ const float RADIUS = 1.75f; //Placeholder number
const float SHUTDOWN = 0.0f; //Placeholder number
const float PULSE_RATE = 10; //Placeholder number - Pulses per second
const float SERVO_TILT_LIMIT = 45; //Placeholder number - max angle servo can tilt by
