PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Robotics
ActivityBot360
libabdrive360
drive_gotoMode.c
1
/*
2
@file drive_gotoMode.c
3
4
@author Parallax Inc
5
6
@copyright
7
Copyright (C) Parallax Inc. 2017. All Rights MIT Licensed. See end of file.
8
9
@brief
10
*/
11
// // //
12
13
14
#include "
abdrive360.h
"
15
16
17
// ABD360_GOTO_BLOCK 0
18
// ABD360_GOTO_SET_FORGET 1
19
void
drive_gotoMode
(
int
mode)
20
{
21
if
(!abd360_initialized)
drive_speed
(0, 0);
22
23
abd360_gotoMode = mode;
24
}
25
26
drive_speed
void drive_speed(int left, int right)
Set wheel speeds in encoder ticks per second. An encoder tick is 1/64th of a revolution,...
Definition:
speed.c:138
drive_gotoMode
void drive_gotoMode(int mode)
Set the mode (blocking or interruptible) of the drive_goto call. For calls in interruptible mode,...
Definition:
gotoMode.c:5
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