Go to the source code of this file.
◆ checkInverterHeartbeat()
int checkInverterHeartbeat |
( |
void * |
self | ) |
|
Checks the heartbeat of the Inverter.
- Parameters
-
self | A pointer to the Inverter structure. |
- Returns
- int _SUCCESS or _FAILURE.
Definition at line 33 of file Inverter.c.
◆ initInverter()
void initInverter |
( |
Inverter * |
inverter, |
|
|
TorqueControl * |
tc, |
|
|
int |
hz, |
|
|
int |
maxCurrent, |
|
|
int |
maxTemp, |
|
|
int |
maxVoltage |
|
) |
| |
Initializes the Inverter with initial settings.
- Parameters
-
inverter | A pointer to the Inverter structure. |
tc | A pointer to the TorqueControl structure. |
hz | Rate at which the inverter is called (in hz). |
maxCurrent | The maximum current limit set for the inverter. |
maxTemp | The maximum temperature limit set for the inverter. |
maxVoltage | The maximum voltage limit set for the inverter. |
Definition at line 6 of file Inverter.c.
6 {
12}
void initExternalSystem(ExternalSystem *external, const char *name, int hz, ExternalType type, int(*updateExternal)(ExternalSystem *external), int(*check_heartbeat)(void *self), void *child)
int checkInverterHeartbeat(void *self)
Checks the heartbeat of the Inverter.
int updateInverter(ExternalSystem *external)
Updates the Inverter.
◆ startInverter()
int startInverter |
( |
Inverter * |
inverter | ) |
|
Starts the Inverter.
- Parameters
-
inverter | A pointer to the Inverter structure. |
- Returns
- int _SUCCESS or _FAILURE.
◆ updateInverter()
Updates the Inverter.
- Parameters
-
- Returns
- int _SUCCESS or _FAILURE.
Definition at line 14 of file Inverter.c.
14 {
16
18 printf("Inverter: Torque Control Actuator is not validated\r\n");
20 }
21
22
23 #ifdef DEBUGn
24 printf("Inverter updated. Torque: %f, Current: %d, Temp: %d, Voltage: %d\r\n",
26 #endif
27
29
31}
uint32_t dac1_buffer[DAC1_BUFFER_SIZE]
◆ dac1_buffer