Changeset 952 for cpp/frams/neuro/impl
- Timestamp:
- 06/20/20 01:09:57 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/neuro/impl/neuroimpl-body-sdk.h
r922 r952 16 16 }; 17 17 18 extern ParamEntry NI_GyroP_tab[]; 19 20 class NI_GyroP : public NeuroImpl 21 { 22 public: 23 double ry,rz; 24 NeuroImpl* makeNew() { return new NI_GyroP(); } // for NeuroFactory 25 int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; } 26 void go() { setState(0); } 27 NI_GyroP(): ry(0),rz(0) { paramentries = NI_GyroP_tab; } 28 }; 29 18 30 extern ParamEntry NI_Touch_tab[]; 19 31 class NI_Touch : public NeuroImpl … … 21 33 public: 22 34 double range; 35 double ry,rz; 23 36 NeuroImpl* makeNew() { return new NI_Touch(); } // for NeuroFactory 24 37 int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; } 25 38 void go() { setState(0); } 26 NI_Touch() :range(1) { paramentries = NI_Touch_tab; }39 NI_Touch() :range(1),ry(0),rz(0) { paramentries = NI_Touch_tab; } 27 40 }; 41 42 extern ParamEntry NI_TouchP_tab[]; 43 class NI_TouchP : public NI_Touch 44 { 45 public: 46 NeuroImpl* makeNew() { return new NI_TouchP(); } // for NeuroFactory 47 NI_TouchP() { paramentries = NI_TouchP_tab; } 48 }; 49 50 extern ParamEntry NI_TouchC_tab[]; 51 class NI_TouchC : public NI_Touch 52 { 53 public: 54 NeuroImpl* makeNew() { return new NI_TouchC(); } // for NeuroFactory 55 NI_TouchC() { paramentries = NI_TouchC_tab; } 56 }; 57 28 58 29 59 class NI_Smell : public NeuroImpl
Note: See TracChangeset
for help on using the changeset viewer.