SkyPulse UAV
V0.1
Loading...
Searching...
No Matches
SkyPulseUAV_Device
include
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
13
class
Motor
{
14
15
public
:
16
17
Motor
();
18
19
void
updateMotor
(
int
rateRequired[4]);
20
21
private
:
22
23
int
motorDutyCycle[4];
24
bool
beyondRange[4];
25
26
};
27
28
#endif
Motor
Definition
Motor.h:13
Motor::updateMotor
void updateMotor(int rateRequired[4])
Definition
Motor.cpp:25
Motor::Motor
Motor()
Definition
Motor.cpp:6
Generated by
1.10.0