Hello,
I have a 5DT glove that I wish to use with Unity. I have the wrapper included in my file, and my functions are working fine. However, my glove won’t open. It’s an old model (5 sensor serial) and I have it plugged in through a Serial-to-USB connector. In the Glove Manager program provided by 5DT, the glove connects and reads inputs on COM3. Here’s my code:
using UnityEngine;
using System.Collections;
using FDTGloveUltraCSharpWrapper;
using System.Runtime.InteropServices;
public class glovedriver : MonoBehaviour {
CfdGlove fdGlove;
// Use this for initialization
void Start () {
fdGlove = new CfdGlove();
fdGlove.Open("COM3");
}
// Update is called once per frame
void Update () {
if(fdGlove.IsOpen ()){
print ("Working");
}
else{
print ("Not Working");
}
}
}
Is the glove too old to work? Should I try opening on USB instead? Any help is appreciated.