PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Motor
libservo360
servo360_stop.c
1
/*
2
@file servo360_stop.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
17
int
servo360_stop
(
int
pin)
18
{
19
if
(!_fb360c.servoCog) servo360_run();
20
int
p = servo360_findServoIndex(pin);
21
if
(p == -1)
return
-1;
22
23
//while(lockset(_fb360c.lock360));
24
servo360_speed
(pin, 0);
25
//while(lockset(_fb360c.lock360));
26
return
p;
27
}
28
29
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
servo360_speed
int servo360_speed(int pin, int speed)
Set servo rotation speed in degrees per second. The default max values range from 720 degrees per sec...
Definition:
servo360_speed.c:17
servo360.h
Parallax Feedback 360 High Speed Servo control and monitoring functions. Uses one additional cog to c...
servo360_stop
int servo360_stop(int pin)
Stop servo motion if it is turning. It is equivalent to a call to servo360_speed(pin,...
Definition:
servo360_stop.c:17
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17