PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Examples
Robots
Arlo
Forward Stop Face Right (3).c
1
/*
2
Forward Stop Face Right.c
3
4
http://learn.parallax.com/activitybot/go-certain-distances
5
*/
6
7
#include "
simpletools.h
"
8
//#include "abdrive.h" // <- Comment out this line
9
#include "arlodrive.h"
// <- Replace it with this line
10
#include "
fdserial.h
"
11
12
fdserial
*term;
13
14
int
main
()
15
{
16
drive_goto
(0, 0);
17
18
dhb10_terminalMode(term);
19
20
drive_goto
(124, 124);
21
drive_goto
(-124, 124);
22
drive_goto
(124, -124);
23
drive_goto
(-124, -124);
24
drive_goto
(-124, -124);
25
drive_goto
(124, -124);
26
drive_goto
(-124, 124);
27
drive_goto
(124, 124);
28
29
//fdserial *com = fdserial_open(9, 8, 0, 9600);
30
dhb10_terminalMode(term);
31
32
drive_goto
(1024, 1024);
33
drive_goto
(-1024, 1024);
34
drive_goto
(1024, -1024);
35
drive_goto
(-1024, -1024);
36
drive_goto
(-1024, -1024);
37
drive_goto
(1024, -1024);
38
drive_goto
(-1024, 1024);
39
drive_goto
(1024, 1024);
40
41
dhb10_terminalMode(term);
42
}
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
text_struct
Structure that contains data used by simple text device libraries.
Definition:
simpletext.h:81
fdserial.h
This library supports creating and managing one or more full duplex serial connections with periphera...
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17