SkyPulse UAV V0.1
Loading...
Searching...
No Matches
Motor.h
Go to the documentation of this file.
1#ifndef __MOTOR_H__
2#define __MOTOR_H__
3
4#define MOTOR1_PIN 1
5#define MOTOR2_PIN 2
6#define MOTOR3_PIN 3
7#define MOTOR4_PIN 4
8
9#define MOTOR_FREQ 500.f
10#define MOTOR_RANGE 10000
11#define MOTOR_HALF_RANGE 5000
12
13class Motor {
14
15public:
16
17 Motor();
18
19 void updateMotor(int rateRequired[4]);
20
21private:
22
23 int motorDutyCycle[4];
24 bool beyondRange[4];
25
26};
27
28#endif
Definition Motor.h:13
void updateMotor(int rateRequired[4])
Definition Motor.cpp:25
Motor()
Definition Motor.cpp:6