Skip to content

Commit e27b7de

Browse files
committed
Some more setup
1 parent de355d5 commit e27b7de

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ target_include_directories(${LIBRARY} PUBLIC
104104
Inc/HALAL/Services
105105
Inc/ST-LIB_LOW
106106
Inc/ST-LIB_HIGH
107+
LCU-Control-H11/STM32H7CodeGenerator
108+
LCU-Shared-H11/Inc
107109
)
108110

109111
message(STATUS "[DEBUG, RELEASE]: RELEASE: " ${RELEASE})

Core/Inc/Control/Control.hpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
#ifndef CONTROL_HPP
22
#define CONTROL_HPP
33

4+
#include "control.h"
5+
6+
class Control {
7+
public:
8+
void init() {
9+
control_initialize();
10+
}
11+
12+
void current_update() { // 2 kHz for now at least
13+
control_U.corriente_real = /* set current value */;
14+
15+
control_step0();
16+
17+
control_Y.Voltage; // Use output
18+
}
19+
20+
void levitation_update() { // 1 kHz for now at least
21+
control_U.Gap = /* set gap value */;
22+
control_U.Referencia = /* set reference value */;
23+
24+
control_step1();
25+
}
26+
};
27+
428
#endif // CONTROL_HPP

0 commit comments

Comments
 (0)