Ignore:
Timestamp:
06/20/20 01:09:57 (4 years ago)
Author:
Maciej Komosinski
Message:

Added new receptors (Gp:"gyroscope" on a Part, Tp:Touch-proximity and Tc:Touch-contact) and improved existing ones (T, G)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/neuro/neurocls-f0-SDK-library.h

    r946 r952  
    4141
    4242
    43  
    44 {0,0,0,},};
    45 addClass(new NeuroClass(NI_Gyro_tab,"Equilibrium sensor.\n0=the stick is horizontal\n+1/-1=the stick is vertical",0,1,2, Gyro_xy,false, 32, 3));
     43
     44 
     45{0,0,0,},};
     46addClass(new NeuroClass(NI_Gyro_tab,"Tilt sensor.\nSignal is proportional to sin(angle) = most sensitive in horizontal orientation.\n0=the stick is horizontal\n+1/-1=the stick is vertical",0,1,2, Gyro_xy,false, 32, 1));
     47
     48      static int GyroP_xy[]={83,8,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,12,43,24,48,24,48,19,38,19,38,24,43,24,43,54,48,54,48,64,43,69,38,64,38,54,43,54,5,63,69,58,74,48,79,38,79,28,74,23,69,1,43,79,43,74,1,23,69,26,66,1,63,69,60,66,1,55,76,53,73,1,31,75,33,72};   
     49static ParamEntry NI_GyroP_tab[]={
     50{"Part Gyroscope",1, 2 ,"Gp",},
     51
     52
     53{"ry",1,0,"rotation.y","f -6.282 6.282 0",},
     54{"rz",1,0,"rotation.z","f -6.282 6.282 0",},
     55 
     56{0,0,0,},};
     57addClass(new NeuroClass(NI_GyroP_tab,"Tilt sensor. Signal is directly proportional to the tilt angle.\n0=the part X axis is horizontal\n+1/-1=the axis is vertical",0,1,1, GyroP_xy,false, 32, 3));
    4658
    4759      static int Touch_xy[]={43,2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50};   
    4860static ParamEntry NI_Touch_tab[]={
    49 {"Touch",1, 1 ,"T",},
     61{"Touch",1, 3 ,"T",},
    5062
    5163
    5264{"r",1,0,"Range","f 0.0 1.0 1.0",},
    53  
    54 {0,0,0,},};
    55 addClass(new NeuroClass(NI_Touch_tab,"Touch sensor.\n-1=no contact\n0=just touching\n>0=pressing, value depends on the force applied",0,1,1, Touch_xy,false, 32, 3));
     65{"ry",1,0,"rotation.y","f -6.282 6.282 0",},
     66{"rz",1,0,"rotation.z","f -6.282 6.282 0",},
     67 
     68{0,0,0,},};
     69addClass(new NeuroClass(NI_Touch_tab,"Touch and proximity sensor (Tc+Tp combined)\n-1=no contact\n0=just touching\n>0=pressing, value depends on the force applied (not implemented in ODE mode)",0,1,1, Touch_xy,false, 32, 3));
     70
     71      static int TouchC_xy[]={43,2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50};   
     72static ParamEntry NI_TouchC_tab[]={
     73{"Touch contact",1, 0 ,"Tc",},
     74
     75
     76 
     77{0,0,0,},};
     78addClass(new NeuroClass(NI_TouchC_tab,"Touch sensor.\n-1=no contact\n0=the Part is touching the obstacle\n>0=pressing, value depends on the force applied (not implemented in ODE mode)",0,1,1, TouchC_xy,false, 32, 3));
     79
     80      static int TouchP_xy[]={43,2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50};   
     81static ParamEntry NI_TouchP_tab[]={
     82{"Touch proximity",1, 3 ,"Tp",},
     83
     84
     85{"r",1,0,"Range","f 0.0 1.0 1.0",},
     86{"ry",1,0,"rotation.y","f -6.282 6.282 0",},
     87{"rz",1,0,"rotation.z","f -6.282 6.282 0",},
     88 
     89{0,0,0,},};
     90addClass(new NeuroClass(NI_TouchP_tab,"Proximity sensor detecting obstacles along the X axis.\n-1=distance is \r\' or more\n0=zero distance'",0,1,1, TouchP_xy,false, 32, 3));
    5691
    5792      static int Smell_xy[]={64,5,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,3,10,40,15,45,15,55,10,60,5,20,30,25,35,30,45,30,55,25,65,20,70,4,15,35,20,40,22,50,20,60,15,65,5,75,50,50,50,45,45,40,50,45,55,50,50};   
Note: See TracChangeset for help on using the changeset viewer.