Alex exoskeleton
ALEX SoftwareDocumentation
Functions | Variables
testSM.cpp File Reference

Test for the statemachine class and associated classes: state, event and transition. More...

#include "CANopen.h"
#include "ExoRobot.h"
#include "TestMachine.h"
Include dependency graph for testSM.cpp:

Go to the source code of this file.

Functions

void CO_errExit (char *msg)
 
void CO_error (const uint32_t info)
 
int main (void)
 

Variables

pthread_mutex_t CO_CAN_VALID_mtx = PTHREAD_MUTEX_INITIALIZER
 Testing ExoRobot new classes. More...
 
volatile uint32_t CO_timer1ms = 0U
 

Detailed Description

Test for the statemachine class and associated classes: state, event and transition.

Author
William Campbell
Version
0.1
Date
2020-04-09

Definition in file testSM.cpp.

Function Documentation

void CO_errExit ( char *  msg)

Definition at line 20 of file testSM.cpp.

void CO_error ( const uint32_t  info)

Definition at line 26 of file testSM.cpp.

int main ( void  )

Definition at line 31 of file testSM.cpp.

Variable Documentation

pthread_mutex_t CO_CAN_VALID_mtx = PTHREAD_MUTEX_INITIALIZER

Testing ExoRobot new classes.

Mutex is locked, when CAN is not valid (configuration state). May be used from other threads. RT threads may use CO->CANmodule[0]->CANnormal instead.

Definition at line 16 of file testSM.cpp.

volatile uint32_t CO_timer1ms = 0U

Global variable increments each millisecond

Definition at line 17 of file testSM.cpp.