[openrtm-commit:01165] r475 - branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 1月 19日 (日) 21:31:40 JST
Author: win-ei
Date: 2014-01-19 21:31:40 +0900 (Sun, 19 Jan 2014)
New Revision: 475
Added:
branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/FaultDiagnosisMngTbl.c.vsl
branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/RtcCreateTbl.c.vsl
Log:
Daily work.
Added: branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/FaultDiagnosisMngTbl.c.vsl
===================================================================
--- branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/FaultDiagnosisMngTbl.c.vsl (rev 0)
+++ branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/FaultDiagnosisMngTbl.c.vsl 2014-01-19 12:31:40 UTC (rev 475)
@@ -0,0 +1,43 @@
+// -*- C -*-
+/*!
+ * @file FaultDiagnosisMngTbl.c
+ * @brief Self-diagnosis management table
+#set( $Date$ = "dummy" )
+ * @date \$Date$
+ *
+#set( $Id$ = "dummy" )
+ * \$Id$
+ */
+
+
+${sharp}include "UserCommon.h"
+${sharp}include "UserConfig.h"
+${sharp}include "SelfDiagnostic.h"
+${sharp}include "MyObjectKey.h"
+
+ReturnCode_t checkFunc( void );
+void errorHandler( void );
+
+/* Self-diagnosis management table */
+const FaultDiagnosisMng_t gsDiagnosisMng[RTC_SELF_DIAGNOS] =
+{
+ {
+ checkFunc, /* The method for self-diagnoses */
+ errorHandler /* The method for self-diagnosis error handling */
+ }
+};
+
+/* The method for self-diagnoses */
+ReturnCode_t checkFunc(void){
+ /* Please implement processing for self-diagnoses here. */
+ /* Regards it as an error, if values other than RTC_OK are returned. */
+ return RTC_OK;
+}
+
+/* The method for self-diagnosis error handling */
+void errorHandler(void){
+ /* Please implement processing for an error of the result of self-diagnosis here. */
+ return;
+}
+
+
Added: branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/RtcCreateTbl.c.vsl
===================================================================
--- branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/RtcCreateTbl.c.vsl (rev 0)
+++ branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/RtcCreateTbl.c.vsl 2014-01-19 12:31:40 UTC (rev 475)
@@ -0,0 +1,73 @@
+// -*- C -*-
+/*!
+ * @file RtcCreateTbl.c
+ * @brief RTC creation table
+#set( $Date$ = "dummy" )
+ * @date \$Date$
+ *
+#set( $Id$ = "dummy" )
+ * \$Id$
+ */
+
+${sharp}include "UserCommon.h"
+${sharp}include "UserConfig.h"
+${sharp}include "RtObject.h"
+${sharp}include "OutputRTC.h"
+${sharp}include "InputRTC.h"
+${sharp}include "MyObjectKey.h"
+${sharp}include "DemoAcceleration.h"
+${sharp}include "DemoLed.h"
+
+/* RTC creation table */
+const RtcCreate_t gsRtcCreates[RTC_NUM] =
+{
+ {/* InputRTC setting */
+ DemoAcceleration_create, /* RTC creation method(Please set up the function which performs the create event of RTC.) */
+ RTC_INDEX_DEMO_ACCELERATION, /* RTCID(ObjectKey) */
+ RESERVE_FOR_RTC_CREATE_TBL, /* Reserve */
+ { /* Please set up Index of DataPort which RTC has. (set up 0, when there is nothing) */
+ DATAPORT_INDEX_DEMO_ACCELERATION,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0
+ }/* A maximum of 16 */
+ },
+ {/* InputRTC setting */
+ DemoLed_create, /* RTC creation method(Please set up the function which performs the create event of RTC.) */
+ RTC_INDEX_DEMO_LED, /* RTCID(ObjectKey) */
+ RESERVE_FOR_RTC_CREATE_TBL, /* Reserve */
+ { /* Please set up Index of DataPort which RTC has. (set up 0, when there is nothing) */
+ DATAPORT_INDEX_DEMO_LED,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0
+ }/* A maximum of 16 */
+ }
+};
+
+
+
More information about the openrtm-commit
mailing list