PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Examples
Robots
ActivityBot360
drive_goto variations.c
1
/*
2
drive_goto variations.c
3
*/
4
5
6
#include "
simpletools.h
"
7
#include "
abdrive360.h
"
8
9
int
main
()
10
{
11
drive_goto
(192, 192);
12
pause
(1000);
13
drive_goto
(-28, 28);
14
pause
(1000);
15
drive_goto
(28 * 2, -28 * 2);
16
pause
(1000);
17
drive_goto
(-28, 28);
18
pause
(1000);
19
drive_goto
(-192, -192);
20
pause
(1000);
21
22
drive_goto
(192, 128);
23
pause
(1000);
24
drive_goto
(-192, -128);
25
pause
(1000);
26
drive_goto
(128, 192);
27
pause
(1000);
28
drive_goto
(-128, -192);
29
pause
(1000);
30
}
pause
void pause(int time)
Delay cog from moving on to the next statement for a certain length of time.
Definition:
libws2812.c:125
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
drive_goto
void drive_goto(int distLeft, int distRight)
Make each wheel go a particular distance. Recommended for straight forward, backward,...
Definition:
goto.c:38
main
int main(void)
Definition:
GraphicsTest.c:20
abdrive360.h
This library provides a simple set of functions for making the ActivityBot 360 go certain distances a...
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17