Are you able to test this with an actual device and get it to show that it is reacting to movements correctly?
If so then it should not be difficult to send events (or actions) to VC. The simplest method would be to send a UDP message to VoxCommando.
After that it could be adapted to be a plugin but that would be more difficult.
Here is a sample code to send an event to VC with UDP. It's ridiculously simple.
In this example I am sending the event "Myo.Test" and attaching optional payloads. Payload {1} is up and Payload {2} is 5.
Note that we are "broadcasting" to the whole LAN by using an IP of 255.255.255.255, but you could also enter the IP of the machine running VC if you want. 33000 is the default port that VC listens on, set in options.
You don't have to send an event. You can trigger an VC action. More info on that here:
http://voxcommando.com/mediawiki/index.php?title=API_Application_Programming_Interfaceusing System;
using System.Net.Sockets;
using System.Text;
using System.Windows.Forms;
namespace simpleUdpExample
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
UdpClient udpClient = new UdpClient("255.255.255.255", 33000);
Byte[] sendBytes = Encoding.ASCII.GetBytes("VC.TriggerEvent&&Myo.test&&up&&5");
udpClient.Send(sendBytes, sendBytes.Length);
}
}
}