Patrick Clary / Mbed 2 deprecated WalkingRobot

Dependencies:   CircularBuffer Servo Terminal mbed Radio

Committer:
pclary
Date:
Mon May 27 03:31:58 2013 +0000
Revision:
17:4ec59e8b52a6
Parent:
9:a6d1502f0f20
Child:
18:8806d24809c2
Added a function for computing the distance to the step circle edge

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pclary 9:a6d1502f0f20 1
pclary 9:a6d1502f0f20 2
pclary 9:a6d1502f0f20 3 inline float min(float a, float b)
pclary 9:a6d1502f0f20 4 {
pclary 9:a6d1502f0f20 5 return (a < b ? a : b);
pclary 17:4ec59e8b52a6 6 }
pclary 17:4ec59e8b52a6 7
pclary 17:4ec59e8b52a6 8
pclary 17:4ec59e8b52a6 9
pclary 17:4ec59e8b52a6 10 inline float pos(float f)
pclary 17:4ec59e8b52a6 11 {
pclary 17:4ec59e8b52a6 12 return f > 0.0f ? f : 0.0f;
pclary 9:a6d1502f0f20 13 }