PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Robotics
ActivityBot360
libabdrive360
drive_setRampStep.c
1
/*
2
@file drvie_setabd360_rampStep.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_setRampStep
(
int
stepsize)
18
{
19
if
(!abd360_initialized)
drive_speed
(0, 0);
20
21
servo360_setAcceleration
(abd360_pinCtrlLeft, stepsize * 50);
22
servo360_setAcceleration
(abd360_pinCtrlRight, stepsize * 50);
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
drive_setRampStep
void drive_setRampStep(int stepsize)
Overrides the default 12 ticks/second per 50th of a second for ramping.
Definition:
setRampStep.c:5
servo360_setAcceleration
int servo360_setAcceleration(int pin, int unitsPerSecSquared)
Set acceleration in terms of degrees per second squared. The default is 3600 degrees per second squar...
Definition:
servo360_setAcceleration.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