libkovan  1
The kovan standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
motors.h File Reference

Provides classes for working with motors. More...

#include "export.h"

Go to the source code of this file.

Functions

int get_motor_position_counter (int motor)
 
void clear_motor_position_counter (int motor)
 
int move_at_velocity (int motor, int velocity)
 
int mav (int motor, int velocity)
 
int move_to_position (int motor, int speed, int goal_pos)
 
int mtp (int motor, int speed, int goal_pos)
 
int move_relative_position (int motor, int speed, int delta_pos)
 
int mrp (int motor, int speed, int delta_pos)
 
void set_pid_gains (int motor, short p, short i, short d, short pd, short id, short dd)
 
void get_pid_gains (int motor, short *p, short *i, short *d, short *pd, short *id, short *dd)
 
int freeze (int motor)
 
int get_motor_done (int motor)
 
void block_motor_done (int motor)
 
void bmd (int motor)
 
int setpwm (int motor, int pwm)
 
int getpwm (int motor)
 
void fd (int motor)
 
void bk (int motor)
 
void motor (int motor, int percent)
 
void off (int motor)
 
void alloff ()
 
void ao ()
 

Detailed Description

Provides classes for working with motors.

Author
Braden McDorman

Function Documentation

int move_relative_position ( int  motor,
int  speed,
int  delta_pos 
)
int move_to_position ( int  motor,
int  speed,
int  goal_pos 
)