![]() |
PsiSwarm Library
0.8
|
#include <psiswarm.h>
Public Member Functions | |
void | init (void) |
float | get_uptime (void) |
void | pause_user_code (float period) |
void | reset_encoders (void) |
void | debug (const char *format,...) |
Psiswarm Class The main class to define a robot
Example code for main.cpp:
Definition at line 98 of file psiswarm.h.
void Psiswarm::debug | ( | const char * | format, |
... | |||
) |
Send a string (in printf format) to the preferred debug stream, specified in settings.h [of overridden programmatically]
The | string to send to output stream |
Definition at line 325 of file psiswarm.cpp.
float Psiswarm::get_uptime | ( | void | ) |
Get the uptime for the robot
Definition at line 339 of file psiswarm.cpp.
void Psiswarm::init | ( | void | ) |
Main initialisation routine for the PsiSwarm robot
Set up the GPIO expansion ICs, launch demo mode if button is held
Main initialisation routine for the PsiSwarm robot
Set up the GPIO expansion ICs, launch demo mode if button is held
Definition at line 169 of file psiswarm.cpp.
void Psiswarm::pause_user_code | ( | float | period | ) |
Pause the user code for a defined amount of time
The | amount of time in seconds to pause user code |
Definition at line 344 of file psiswarm.cpp.
void Psiswarm::reset_encoders | ( | void | ) |
Reset the wheel encoder counters
Definition at line 319 of file psiswarm.cpp.