Skip to content

Commit

Permalink
Testing adding an SVG diagram to doc headers
Browse files Browse the repository at this point in the history
  • Loading branch information
MattDiesel committed Mar 16, 2015
1 parent 2ed8c63 commit 5fd9560
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion routines/common.h
Expand Up @@ -3,12 +3,23 @@
#include "dev/linesensors.h"
#include "robot.h"

typedef bool (*EGG_CALLBACK)(EggSensor::Reading& reading);

struct negate { LineSensors::Reading::State s; };
void waitForLine(Robot& r, LineSensors::Reading::State s);
void waitForLine(Robot& r, negate n);

void goToConveyor(Robot& r, bool east = true);

typedef bool (*EGG_CALLBACK)(EggSensor::Reading& reading);

/** Drives along the conveyor collecting eggs
\htmlonly
<div align='center'>
<embed src="http://1b-idp.readthedocs.org/en/latest/_static/conveyorCollect.svg" type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" />
</div>
\endhtmlonly
*/
void conveyorCollect(Robot& r, EGG_CALLBACK shouldCollect);

void checkpoint(Robot& r, std::string id);
void dropEggs(Robot& r, int n = 1);

0 comments on commit 5fd9560

Please sign in to comment.