PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Robotics
ActivityBot360
libabdrive360
drive360_unitsPerRev.c
1
/*
2
@file drive360_unitsPerRev.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
void
drive360_unitsPerRev(
int
units)
18
{
19
if
(!abd360_initialized)
drive_speed
(0, 0);
20
21
servo360_setUnitsFullCircle
(abd360_pinCtrlLeft, units);
22
servo360_setUnitsFullCircle
(abd360_pinCtrlRight, units);
23
}
24
25
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
servo360_setUnitsFullCircle
int servo360_setUnitsFullCircle(int pin, int units)
Set the number of units in a full circle. By default, this value is 360. This function does not act...
Definition:
servo360_setUnitsFullCircle.c:17
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