#include "rcs.hh"#include "simmot_n.h"#include "amplifier.h"#include "dcmotor2.h"#include "encoder.h"Include dependency graph for simmot_n.cc:

Go to the source code of this file.
Functions | |
| void | simmot_status_struct_update (CMS *cms, simmot_status_struct *x) |
| void | AMPLIFIER_STRUCT_update (CMS *cms, AMPLIFIER_STRUCT *x) |
| void | DC_MOTOR_STRUCT_update (CMS *cms, DC_MOTOR_STRUCT *x) |
| void | ENCODER_STRUCT_update (CMS *cms, ENCODER_STRUCT *x) |
| void | simmot_command_struct_update (CMS *cms, simmot_command_struct *x) |
| int | simmot_format (NMLTYPE type, void *buffer, CMS *cms) |
| const char * | simmot_symbol_lookup (int type) |
|
||||||||||||
|
Definition at line 142 of file simmot_n.cc. Referenced by simmot_command_struct_update(), and simmot_status_struct_update().
00143 {
00144 cms->update(x->gain);
00145 cms->update(x->maxOutputCurrent);
00146 cms->update(x->loadResistance);
00147 cms->update(x->configured);
00148 cms->update(x->enabled);
00149 cms->update(x->tripped);
00150
00151 }
|
|
||||||||||||
|
Definition at line 86 of file simmot_n.cc. Referenced by simmot_command_struct_update(), and simmot_status_struct_update().
00087 {
00088 cms->update(x->Ra);
00089 cms->update(x->La);
00090 cms->update(x->Kb);
00091 cms->update(x->Jm);
00092 cms->update(x->Bm);
00093 cms->update(x->a);
00094 cms->update(x->b);
00095 cms->update(x->c);
00096 cms->update(x->fourac_minus_b_squared);
00097 cms->update(x->sa_real);
00098 cms->update(x->sb_real);
00099 cms->update(x->sa_img);
00100 cms->update(x->sb_img);
00101 cms->update(x->sa_time_factor);
00102 cms->update(x->sb_time_factor);
00103 cms->update(x->order);
00104 cms->update(x->wo);
00105 cms->update(x->dwo);
00106 cms->update(x->last_ea);
00107 cms->update(x->A);
00108 cms->update(x->B);
00109 cms->update(x->delta_thm);
00110 cms->update(x->ia);
00111 cms->update(x->dia);
00112 cms->update(x->wm);
00113 cms->update(x->dwm);
00114 cms->update(x->thm);
00115 cms->update(x->dthm);
00116 cms->update(x->lastTime);
00117 cms->update(x->configured);
00118 cms->update(x->cycleTime);
00119 cms->update(x->offset);
00120 cms->update(x->revsPerUnit);
00121
00122 }
|
|
||||||||||||
|
Definition at line 159 of file simmot_n.cc. Referenced by simmot_command_struct_update(), and simmot_status_struct_update().
00160 {
00161 cms->update(x->countsPerRev);
00162 cms->update(x->configured);
00163 cms->update(x->counts);
00164 cms->update(x->calibrating);
00165 cms->update(x->offset);
00166 cms->update(x->lastPosition);
00167 cms->update(x->index);
00168
00169 }
|
|
||||||||||||
|
Definition at line 177 of file simmot_n.cc. 00178 {
00179 for(int i_amplifier = 0;i_amplifier < 8 ;i_amplifier++)
00180 AMPLIFIER_STRUCT_update(cms,&(x->amplifier[i_amplifier]));
00181 for(int i_dcmotor = 0;i_dcmotor < 8 ;i_dcmotor++)
00182 DC_MOTOR_STRUCT_update(cms,&(x->dcmotor[i_dcmotor]));
00183 for(int i_encoder = 0;i_encoder < 8 ;i_encoder++)
00184 ENCODER_STRUCT_update(cms,&(x->encoder[i_encoder]));
00185
00186 }
|
|
||||||||||||||||
|
Definition at line 27 of file simmot_n.cc. 00028 {
00029 switch(type)
00030 {
00031 case SIMMOT_COMMAND_TYPE:
00032 ((SIMMOT_COMMAND *) buffer)->update(cms);
00033 break;
00034 case SIMMOT_STATUS_TYPE:
00035 ((SIMMOT_STATUS *) buffer)->update(cms);
00036 break;
00037
00038 default:
00039 return(0);
00040 }
00041 return 1;
00042 }
|
|
||||||||||||
|
Definition at line 66 of file simmot_n.cc. 00067 {
00068 cms->update(x->initialized);
00069 cms->update(x->cmd_count);
00070 cms->update(x->ampOutput,8);
00071 for(int i_amplifier = 0;i_amplifier < 8 ;i_amplifier++)
00072 AMPLIFIER_STRUCT_update(cms,&(x->amplifier[i_amplifier]));
00073 for(int i_dcmotor = 0;i_dcmotor < 8 ;i_dcmotor++)
00074 DC_MOTOR_STRUCT_update(cms,&(x->dcmotor[i_dcmotor]));
00075 for(int i_encoder = 0;i_encoder < 8 ;i_encoder++)
00076 ENCODER_STRUCT_update(cms,&(x->encoder[i_encoder]));
00077
00078 }
|
|
|
Definition at line 46 of file simmot_n.cc. 00047 {
00048 switch(type)
00049 {
00050 case SIMMOT_COMMAND_TYPE:
00051 return "SIMMOT_COMMAND";
00052 case SIMMOT_STATUS_TYPE:
00053 return "SIMMOT_STATUS";
00054 default:
00055 return"UNKNOWN";
00056 break;
00057 }
00058 return(NULL);
00059 }
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001