|
@@ -6,56 +6,56 @@ namespace SketchAssistantWPF
|
|
|
{
|
|
|
internal class Armband
|
|
|
{
|
|
|
- [StructLayout(LayoutKind.Sequential)]
|
|
|
- public class BodyActuator
|
|
|
- {
|
|
|
- enum BodyActuator_Type
|
|
|
- {
|
|
|
- BODYACTUATOR_TYPE_NONE,
|
|
|
- BODYACTUATOR_TYPE_EAI,
|
|
|
- BODYACTUATOR_TYPE_PIEZO,
|
|
|
- BODYACTUATOR_TYPE_ERM,
|
|
|
- BODYACTUATOR_TYPE_EMS
|
|
|
- };
|
|
|
- bool valid;
|
|
|
- ushort actuatorCount;
|
|
|
- BodyActuator_Type type;
|
|
|
- ArduinoHub arduinoHub;
|
|
|
- EAIHub eaiHub;
|
|
|
- }
|
|
|
+ //[StructLayout(LayoutKind.Sequential)]
|
|
|
+ //public class BodyActuator
|
|
|
+ //{
|
|
|
+ // enum BodyActuator_Type
|
|
|
+ // {
|
|
|
+ // BODYACTUATOR_TYPE_NONE,
|
|
|
+ // BODYACTUATOR_TYPE_EAI,
|
|
|
+ // BODYACTUATOR_TYPE_PIEZO,
|
|
|
+ // BODYACTUATOR_TYPE_ERM,
|
|
|
+ // BODYACTUATOR_TYPE_EMS
|
|
|
+ // };
|
|
|
+ // bool valid;
|
|
|
+ // ushort actuatorCount;
|
|
|
+ // BodyActuator_Type type;
|
|
|
+ // ArduinoHub arduinoHub;
|
|
|
+ // EAIHub eaiHub;
|
|
|
+ //}
|
|
|
|
|
|
|
|
|
- [StructLayout(LayoutKind.Sequential)]
|
|
|
- public class EAIHub
|
|
|
- {
|
|
|
- bool valid;
|
|
|
- pthread_mutex_t mutex; //TODO fix this
|
|
|
- Thread thread;
|
|
|
- Actuator* actuators; //TODO
|
|
|
- uint tactorType;
|
|
|
- uint modulation;
|
|
|
- int deviceID;
|
|
|
- }
|
|
|
+ //[StructLayout(LayoutKind.Sequential)]
|
|
|
+ //public class EAIHub
|
|
|
+ //{
|
|
|
+ // bool valid;
|
|
|
+ // pthread_mutex_t mutex; //TODO fix this
|
|
|
+ // Thread thread;
|
|
|
+ // Actuator* actuators; //TODO
|
|
|
+ // uint tactorType;
|
|
|
+ // uint modulation;
|
|
|
+ // int deviceID;
|
|
|
+ //}
|
|
|
|
|
|
- [StructLayout(LayoutKind.Sequential)]
|
|
|
- public class ArduinoHub
|
|
|
- {
|
|
|
- enum ArduinoHub_Type
|
|
|
- {
|
|
|
- ARDUINOHUB_TYPE_PIEZO = 'P',
|
|
|
- ARDUINOHUB_TYPE_ERM = 'E',
|
|
|
- ARDUINOHUB_TYPE_EMS = 'M'
|
|
|
- }
|
|
|
- bool valid;
|
|
|
- pthread_mutex_t mutex; //TODO fix this
|
|
|
- Thread thread;
|
|
|
- ArduinoHub_Type arduinoType;
|
|
|
- Serial* serial;
|
|
|
- Actuator* actuators;
|
|
|
- }
|
|
|
+ //[StructLayout(LayoutKind.Sequential)]
|
|
|
+ //public class ArduinoHub
|
|
|
+ //{
|
|
|
+ // enum ArduinoHub_Type
|
|
|
+ // {
|
|
|
+ // ARDUINOHUB_TYPE_PIEZO = 'P',
|
|
|
+ // ARDUINOHUB_TYPE_ERM = 'E',
|
|
|
+ // ARDUINOHUB_TYPE_EMS = 'M'
|
|
|
+ // }
|
|
|
+ // bool valid;
|
|
|
+ // pthread_mutex_t mutex; //TODO fix this
|
|
|
+ // Thread thread;
|
|
|
+ // ArduinoHub_Type arduinoType;
|
|
|
+ // Serial* serial;
|
|
|
+ // Actuator* actuators;
|
|
|
+ //}
|
|
|
|
|
|
- [DllImport("BodyActuator.dll", EntryPoint = "BodyActuator_actuate")]
|
|
|
- static extern void pushForward(ref BodyActuator self, byte tactor, double intensity, ulong duration);
|
|
|
+ //[DllImport("BodyActuator.dll", EntryPoint = "BodyActuator_actuate")]
|
|
|
+ //static extern void pushForward(ref BodyActuator self, byte tactor, double intensity, ulong duration);
|
|
|
|
|
|
internal void pushForward()
|
|
|
{
|