-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.h
More file actions
64 lines (53 loc) · 941 Bytes
/
variables.h
File metadata and controls
64 lines (53 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#pragma once
struct Control_Channel
{
uint8_t ppmIdx;
int16_t center; //PWM Offset
int16_t factor;
int16_t deadzone;
int16_t lowerLimit;
int16_t upperLimit;
};
struct FSLPChannel
{
uint8_t ppmIdx;
int16_t touchThreshold;
int16_t modeChangeThreshold;
int16_t factor;
int16_t deadzone;
// int16_t lowerLimit;
// int16_t upperLimit;
int16_t lowerLength;
int16_t upperLength;
int16_t pwmCenter;
};
struct Switch_Channel
{
uint8_t ppmIdx;
uint16_t modePPM[6];
};
struct Lidar_Setting
{
long m_P;
long m_I;
long m_Imax;
long m_D;
};
struct config_t
{
uint8_t vers;
int16_t PPMframeLength;
int16_t PPMPulseLength;
int16_t PWMLenFrom;
int16_t PWMLenTo;
int16_t PWMCenter;
Control_Channel controlChannel[2];
FSLPChannel throttleChannel;
FSLPChannel yawChannel;
Switch_Channel buttonChannel[2];
int16_t thresholdBTN;
long lidarLim[4];
long cAvoidPWM[4];
int16_t PWM_THR_UP_Lim;
Lidar_Setting lidar[3];
};