PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Robotics
ActivityBot360
libabdrive360
drive_getTicks.c
1
/*
2
@file drive_getTicks.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
drive_getTicks
(
int
*left,
int
*right)
18
{
19
if
(!abd360_initialized)
drive_speed
(0, 0);
20
21
*left =
servo360_getAngle
(abd360_pinCtrlLeft);
22
*right =
servo360_getAngle
(abd360_pinCtrlRight);
23
}
24
25
drive_getTicks
void drive_getTicks(int *left, int *right)
Get the measured number of ticks the have traveled.
Definition:
getticks.c:9
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
abdrive360.h
This library provides a simple set of functions for making the ActivityBot 360 go certain distances a...
servo360_getAngle
int servo360_getAngle(int pin)
Get measured angle of servo in degree units.
Definition:
servo360_getAngle.c:17
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17