Bluetooth communication for flocking.
Fork of BeautifulMemeProject by
Diff: PsiSwarm/motors.h
- Revision:
- 9:085e090e1ec1
- Parent:
- 8:00558287a4ef
- Child:
- 13:f5994956b1ba
--- a/PsiSwarm/motors.h Thu Oct 22 15:36:16 2015 +0000 +++ b/PsiSwarm/motors.h Mon Oct 26 11:16:05 2015 +0000 @@ -24,9 +24,12 @@ void backward(float speed); void turn(float speed); -void time_based_turn(float speed, int microseconds); -void time_based_turn_degrees(float speed, float degrees); - +// New time based functions (library v0.3) +void time_based_forward(float speed, int microseconds, char brake); +void time_based_turn(float speed, int microseconds, char brake); +int time_based_turn_degrees(float speed, float degrees, char brake); +int get_time_based_turn_time(float speed, float degrees); +void IF_check_time_for_existing_time_based_action(); void IF_end_time_based_action(); void IF_update_motors();