ASMESDC2018
Classes | Macros
/home/swerve/Github/sdc_2018/omni_robot/Motor.h File Reference

Header file for Motor class More...

#include <Encoder.h>
#include <Servo.h>
Include dependency graph for Motor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MotorState
 
struct  MotorPins
 
class  Motor
 

Macros

#define MOTOR_TYPE_DC   1
 
#define MOTOR_TYPE_BLDC   2
 
#define MOTOR_TYPE_SERVO   3
 
#define MOTOR_TYPE_MIN   1
 
#define MOTOR_TYPE_MAX   3
 
#define MOTOR_FORWARD   1
 
#define MOTOR_BRAKE   0
 
#define MOTOR_REVERSE   -1
 
#define MOTOR_SPEED_MIN   0
 
#define MOTOR_SPEED_MAX   100
 
#define MOTOR_PWM_MIN   0
 
#define MOTOR_PWM_MAX   255
 
#define MOTOR_PPM_MIN   1200
 
#define MOTOR_PPM_MAX   1800
 
#define MOTOR_PPM_OFF   1500
 
#define ESC_ARM_DELAY   10
 
#define NO_ENCODER_PIN   -1
 

Detailed Description

Header file for Motor class

Author
Frederick Wachter - wacht.nosp@m.erfr.nosp@m.eddy@.nosp@m.gmai.nosp@m.l.com
Date
Created: 2018-03-06

Definition in file Motor.h.

Macro Definition Documentation

#define ESC_ARM_DELAY   10

Definition at line 37 of file Motor.h.

#define MOTOR_BRAKE   0

Definition at line 25 of file Motor.h.

#define MOTOR_FORWARD   1

Definition at line 24 of file Motor.h.

#define MOTOR_PPM_MAX   1800

Definition at line 34 of file Motor.h.

#define MOTOR_PPM_MIN   1200

Definition at line 33 of file Motor.h.

#define MOTOR_PPM_OFF   1500

Definition at line 35 of file Motor.h.

#define MOTOR_PWM_MAX   255

Definition at line 32 of file Motor.h.

#define MOTOR_PWM_MIN   0

Definition at line 31 of file Motor.h.

#define MOTOR_REVERSE   -1

Definition at line 26 of file Motor.h.

#define MOTOR_SPEED_MAX   100

Definition at line 29 of file Motor.h.

#define MOTOR_SPEED_MIN   0

Definition at line 28 of file Motor.h.

#define MOTOR_TYPE_BLDC   2

Definition at line 18 of file Motor.h.

#define MOTOR_TYPE_DC   1

Definition at line 17 of file Motor.h.

#define MOTOR_TYPE_MAX   3

Definition at line 22 of file Motor.h.

#define MOTOR_TYPE_MIN   1

Definition at line 21 of file Motor.h.

#define MOTOR_TYPE_SERVO   3

Definition at line 19 of file Motor.h.

#define NO_ENCODER_PIN   -1

Definition at line 39 of file Motor.h.