Alex exoskeleton
ALEX SoftwareDocumentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
application.cpp
Go to the documentation of this file.
1 /*
2  * Application interface for Alex Exoskeleton Software
3  *
4  * @file application.c
5  * @author William Campbell
6  *
7 
8  */
9 #include "application.h"
10 
11 /*For master-> node SDO message sending*/
12 #define CO_COMMAND_SDO_BUFFER_SIZE 100000
13 #define STRING_BUFFER_SIZE (CO_COMMAND_SDO_BUFFER_SIZE * 4 + 100)
16 ExoTestMachine testMachine;
17 
18 /******************************************************************************/
19 void app_programStart(void) {
20  printf("app_Program Start \n");
21  testMachine.init();
22  ((StateMachine)testMachine).activate();
23 }
24 /******************************************************************************/
26 }
27 /******************************************************************************/
28 void app_programEnd(void) {
29  printf("app_programEnd \n");
30 }
31 /******************************************************************************/
32 void app_programAsync(uint16_t timer1msDiffy) {
33 }
34 
36  if (testMachine.running) {
37  testMachine.hwStateUpdate();
38  testMachine.update();
39  }
40 }
void app_programEnd(void)
Definition: application.cpp:28
Abstract class representing a state machine. Includes a number of State and Transition objects...
Definition: StateMachine.h:26
ExoTestMachine testMachine
Definition: application.cpp:16
void app_communicationReset(void)
Definition: application.cpp:25
char ret[STRING_BUFFER_SIZE]
Definition: application.cpp:15
char buf[STRING_BUFFER_SIZE]
Definition: application.cpp:14
void app_programControlLoop(void)
Definition: application.cpp:35
unsigned short uint16_t
Definition: CO_command.h:35
void app_programStart(void)
Definition: application.cpp:19
void app_programAsync(uint16_t timer1msDiffy)
Definition: application.cpp:32
#define STRING_BUFFER_SIZE
Definition: CO_command.c:49