20 CO_errorReport(CO->em, CO_EM_GENERIC_SOFTWARE_ERROR, CO_EMC_SOFTWARE_INTERNAL, info);
21 fprintf(stderr,
"canopend generic error: 0x%X\n", info);
27 std::cout <<
"1. Construct a CopleyDrive Object (which implements Drive Class), with NODE ID = 1 \n";
30 std::cout <<
"2. Read form OD and change OD\n";
31 cout <<
"current OD position : " << testDrive->
getPos() << std::endl;
33 cout <<
"current OD position : " << testDrive->
getPos() << std::endl;
34 cout <<
"Read Specifically from CO_OD_RAM.targetMotorPositions.motor1: " << CO_OD_RAM.targetMotorPositions.motor1 << std::endl;
35 cout <<
"Read Specifically from CO_OD_RAM.targetMotorPositions.motor2: " << CO_OD_RAM.targetMotorPositions.motor2 << std::endl;
36 cout <<
"Read Specifically from CO_OD_RAM.targetMotorPositions.motor3: " << CO_OD_RAM.targetMotorPositions.motor3 << std::endl;
37 cout <<
"Read Specifically from CO_OD_RAM.targetMotorPositions.motor4: " << CO_OD_RAM.targetMotorPositions.motor4 << std::endl;
38 cout <<
"Read Specifically from CO_OD_RAM.targetMotorPositions.motor5: " << CO_OD_RAM.targetMotorPositions.motor5 << std::endl;
39 cout <<
"Read Specifically from CO_OD_RAM.targetMotorPositions.motor6: " << CO_OD_RAM.targetMotorPositions.motor6 << std::endl;
void CO_error(const uint32_t info)
virtual bool setPos(int position)
Abstract class describing a Drive used to communicate with a CANbus device. Note that many functions ...
An implementation of the Drive Object, specifically for Copley-branded devices (currently used on the...
volatile uint32_t CO_timer1ms
pthread_mutex_t CO_CAN_VALID_mtx
void CO_errExit(char *msg)