PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Robotics
Arlo
libarlodrive
drive_setRampStep.c
1
#include "
simpletools.h
"
2
#include "arlodrive.h"
3
#include "
fdserial.h
"
4
5
// 151207
6
// stepsize results in a = stepsize * 4
7
// Changing to divide by 4
8
9
10
fdserial
*ard_dhb10_arlo;
11
fdserial
*ard_dhb10_terminal;
12
13
int
ard_offset, ard_increment, ard_cycles;
14
15
int
ard_rampStep;
16
int
ard_speedLimit;
17
int
ard_tRampStepPrev;
18
int
ard_speedL, ard_speedR;
19
int
ard_mode;
20
int
ard_feedback;
21
int
ard_servo_pin_L;
22
int
ard_servo_pin_R;
23
int
ard_opened;
24
int
ard_speedAccLim;
25
char
dhb10_reply[DHB10_LEN];
26
int
ard_ramp_interval;
27
28
void
drive_setRampStep
(
int
stepsize)
29
{
30
#ifdef ARLO_DEBUG
31
dprint
(ard_dhb10_terminal,
"drive_setRampStep(%d)\n"
, stepsize);
32
#endif
33
if
(!ard_opened) drive_open();
34
ard_rampStep = stepsize / 4;
35
}
36
dprint
int dprint(text_t *device, const char *format,...) __attribute__((format(printf
Print format "..." args to the device The output is limited to 256 bytes.
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
drive_setRampStep
void drive_setRampStep(int stepsize)
Overrides the default 12 ticks/second per 50th of a second for ramping.
Definition:
setRampStep.c:5
text_struct
Structure that contains data used by simple text device libraries.
Definition:
simpletext.h:81
fdserial.h
This library supports creating and managing one or more full duplex serial connections with periphera...
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17