Fixed Sonar
Dependencies: C12832 Servo mbed-rtos-edited mbed
Fork of NervousPuppy by
Diff: nervousPuppy.h
- Revision:
- 5:cbb5d7460309
- Parent:
- 4:2b47356f4b7d
- Child:
- 6:f854aa2f41e2
--- 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