Ejemplo n.º 1
0
        public bool EffectorPotentialRelease(NAPI.UID uid, out double potential)
        {
            var result = 0.0;

            if (NAPI.BrainBrainEffectorPotentialRelease(handle, uid, ref result))
            {
                potential = result;
                return(true);
            }
            potential = result;
            return(false);
        }
Ejemplo n.º 2
0
        private NAPI.UID[] MakeUids(IntPtr array, UIntPtr count)
        {
            var result = new NAPI.UID[(uint)count];

            unsafe
            {
                var size = sizeof(NAPI.UID);
                for (var i = 0; i < (uint)count; ++i)
                {
                    result[i] = *(NAPI.UID *)array.ToPointer();
                    array    += size;
                }
            }
            return(result);
        }
Ejemplo n.º 3
0
 public bool SensorTriggerImpulse(NAPI.UID uid, double potential)
 {
     return(NAPI.BrainBrainSensorTriggerImpulse(handle, uid, potential));
 }