-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
52 lines (40 loc) · 1.11 KB
/
main.h
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
#ifndef MAIN_H
#define MAIN_H
#include <stdint.h>
#include "stm32h7xx.h"
void SystemClock_Config(void);
void Error_Handler(void);
void initializeStabilization(void);
void updateStabilization(void);
void setStabilizationTarget(float roll, float pitch, float yaw);
void initializeGPS(void);
void updateGPSData(void);
void initializePathPlanning(void);
void addWaypoint(double latitude, double longitude, float altitude);
void updatePathPlanning(void);
int getCurrentWaypointIndex(void);
int getTotalWaypoints(void);
void startMission(void);
void abortMission(void);
void initializeLidar(void);
void updateLidarData(void);
float getObstacleDistance(float bearing);
void initializeTelemetry(void);
void sendTelemetryData(void);
void receiveTelemetryCommands(void);
void initializeImageProcessing(void);
void runImageProcessing(void);
void setComplexScene(int isComplex);
typedef struct {
float roll;
float pitch;
float yaw;
} Orientation;
typedef struct {
double latitude;
double longitude;
float altitude;
} GPSData;
extern Orientation currentOrientation;
extern GPSData currentGPSData;
#endif // MAIN_H