Example code for the UKESF Headstart robotics lab; code to make the PsiSwarm robot move forward and turn.
Dependencies: PsiSwarm-Headstart mbed
Fork of PsiSwarm_V41 by
main.h
- Committer:
- jah128
- Date:
- 2016-06-20
- Revision:
- 31:7fa2c47d73a2
- Parent:
- 30:513457c1ad12
File content as of revision 31:7fa2c47d73a2:
/********************************************************** * UKESF Headstart Summer School - Robot Programming Lab * **********************************************************/ #ifndef MAIN_H #define MAIN_H #include "psiswarm.h" int main(void); void handle_switch_event(char switch_state); void handle_user_serial_message(char * message, char length, char interface); void move_forward(int distance); void turn_right(); void turn_left(); #endif