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

A script to test the functionality of the Drive Objects. More...

#include <iostream>
#include "CANopen.h"
#include "CopleyDrive.h"
#include "Drive.h"
Include dependency graph for testDrives.cpp:

Go to the source code of this file.

Functions

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

Variables

pthread_mutex_t CO_CAN_VALID_mtx = PTHREAD_MUTEX_INITIALIZER
 
volatile uint32_t CO_timer1ms = 0U
 

Detailed Description

A script to test the functionality of the Drive Objects.

Author
Justin Fong
Version
0.1
Date
2020-04-21

Definition in file testDrives.cpp.

Function Documentation

void CO_errExit ( char *  msg)

Definition at line 21 of file testDrives.cpp.

void CO_error ( const uint32_t  info)

Definition at line 27 of file testDrives.cpp.

int main ( void  )

Definition at line 32 of file testDrives.cpp.

Variable Documentation

pthread_mutex_t CO_CAN_VALID_mtx = PTHREAD_MUTEX_INITIALIZER

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 17 of file testDrives.cpp.

volatile uint32_t CO_timer1ms = 0U

Global variable increments each millisecond

Definition at line 18 of file testDrives.cpp.