Skip to content

Instantly share code, notes, and snippets.

View wongkaiweng's full-sized avatar

Catherine Wong wongkaiweng

View GitHub Profile
/**
* (c) 2014, Manuel Vonthron - OPAL-RT Technologies, inc.
*/
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
@mgruhler
mgruhler / torque_examples_2drivers.cpp
Created March 12, 2019 07:14
An example test file to drive to Elmo Gold DC Whistle drives using ethercat, based on https://github.com/OpenEtherCATsociety/SOEM/blob/master/test/linux/simple_test/simple_test.c
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#include <math.h>
#include <ethercattype.h>
#include <nicdrv.h>
#include <ethercatbase.h>