Go to the source code of this file.
◆ getEscMotorRevolutions()
float getEscMotorRevolutions |
( |
const Esc * |
esc | ) |
|
Gets the motor revolutions of the ESC.
- Parameters
-
esc | Pointer to the Esc structure to query. |
- Returns
- The motor revolutions of the ESC.
Definition at line 23 of file Esc.c.
◆ getEscTemp()
float getEscTemp |
( |
const Esc * |
esc | ) |
|
Gets the temperature of the ESC.
- Parameters
-
esc | Pointer to the Esc structure to query. |
- Returns
- The temperature of the ESC.
Definition at line 19 of file Esc.c.
◆ initEsc()
void initEsc |
( |
Esc * |
esc, |
|
|
int |
hz |
|
) |
| |
Initializes the ESC with the given frequency.
- Parameters
-
esc | Pointer to the Esc structure to initialize. |
hz | The frequency in Hertz at which the ESC operates. |
Definition at line 5 of file Esc.c.
5 {
6 if (esc != NULL) {
7
10
11 }
12
13
16
17}
◆ motorRevolutionsTransferFunctionEsc()
float motorRevolutionsTransferFunctionEsc |
( |
int |
x | ) |
|
Definition at line 40 of file Esc.c.
40 {
41 return x + 0.0;
42}
◆ tempTransferFunctionEsc()
float tempTransferFunctionEsc |
( |
int |
x | ) |
|
Definition at line 36 of file Esc.c.
36 {
37 return x + 0.0;
38}
◆ toStringEsc()
char * toStringEsc |
( |
const Esc * |
esc | ) |
|
Converts the Esc structure to a string.
- Parameters
-
esc | Pointer to the Esc structure to convert. |
- Returns
- Pointer to the string representation of the Esc structure.
Definition at line 44 of file Esc.c.
44 {
45 static char str[100];
46
47 return str;
48}
◆ updateEsc()
void updateEsc |
( |
void * |
esc | ) |
|
Updates the ESC data.
- Parameters
-
esc | Pointer to the Esc structure to update. |
Definition at line 27 of file Esc.c.
27 {
29
30
31
32
33 printf("Implement updateEsc logic\n");
34}