PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Motor
libservo360
servo360_getTurns.c
1
/*
2
@file servo360_getTurns.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
#include "
simpletools.h
"
14
#include "
servo360.h
"
15
16
int
servo360_getTurns
(
int
pin)
17
{
18
if
(!_fb360c.servoCog) servo360_run();
19
int
p = servo360_findServoIndex(pin);
20
if
(p == -1)
return
-1;
21
22
return
_fs[p].turns;
23
}
24
25
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
servo360.h
Parallax Feedback 360 High Speed Servo control and monitoring functions. Uses one additional cog to c...
servo360_getTurns
int servo360_getTurns(int pin)
Get the number of times the output shaft has turned in a full circle since the application started (e...
Definition:
servo360_getTurns.c:16
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17