-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller_task.h
More file actions
37 lines (32 loc) · 972 Bytes
/
Copy pathcontroller_task.h
File metadata and controls
37 lines (32 loc) · 972 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
#ifndef CONTROLLER_TASK_H_
#define CONTROLLER_TASK_H_
//*****************************************************************************
// File: controller_task.h
// Authors: Henry Mandeno and Zac Morrow
// Date: 07/08/2023
// Group: 19
// Brief: Controller task that initializes and updates the main and tail
// PID controllers, and send the PID control output to motor drivers.
//*****************************************************************************
/**
* @brief Structure representing the error in position for altitude and yaw.
*/
typedef struct Error {
float altitude;
float yaw;
} Error;
/**
* @brief Returns the mostly recently saved real altitude value.
*
* @returns int32_t Current altitude of helicopter.
*/
int32_t
GetRealAltitude(void);
/**
* @brief Intialises the Controller Task.
*
* @returns uint32_t 0 on success, 1 on failure.
*/
extern uint8_t
ControllerTaskInit(void);
#endif /* CONTROLLER_TASK_H_ */