heise online · c't · iX · Technology Review · Telepolis · mobil · Security · Netze · Open Source · heise resale · Autos · c't-TV · Jobs · Kiosk
Zum Inhalt
c't

c't Projekte - c't-Bot und c't-Sim - Mailinglisten

c't-Bot und c't-Sim


[Voriger (Datum)] [Nächster (Datum)] [Voriger (Thread)] [Nächster (Thread)]
[Nach Datum][Nach Thread]

[ct-bot] Patch fuer RC5_CODE_DOT und drive_Stack_bugfix

Absender: Frank Menzel
Datum: Do, 28.02.2008 22:03:36


Hallo,
anbei ein kleiner Patch, der einmal für die Promo8 die Taste
RC5_CODE_DOT auf die AV-Taste implementiert sowie den sofortigen Absturz
im Stackpos-Verhalten korrigiert. Da wird nämlich caller mit SUBSUCCESS
belegt obwohl NULL übergeben wurde (stammt nicht von mir aus der
ursprünglichen Implementierung).
 
Gruss, 
Frank Menzel
Index: C:/eclipse/workspace/ct-Bot/bot-logic/behaviour_drive_stack.c
===================================================================
--- C:/eclipse/workspace/ct-Bot/bot-logic/behaviour_drive_stack.c	(revision 1354)
+++ C:/eclipse/workspace/ct-Bot/bot-logic/behaviour_drive_stack.c	(working copy)
@@ -91,7 +91,8 @@
 void bot_push_actpos(Behaviour_t * caller) {
 	// sichern der aktuellen Botposition auf den Stack
 	bot_push_pos(x_pos, y_pos);
-	caller->subResult = SUBSUCCESS;
+	if (caller)
+	  caller->subResult = SUBSUCCESS;
 }
 
 /*!
Index: C:/eclipse/workspace/ct-Bot/include/rc5-codes.h
===================================================================
--- C:/eclipse/workspace/ct-Bot/include/rc5-codes.h	(revision 1354)
+++ C:/eclipse/workspace/ct-Bot/include/rc5-codes.h	(working copy)
@@ -257,6 +257,9 @@
 	#define RC5_CH_PLUS		(0x1020 & RC5_MASK)		/*!< Ch + Taste */
  	#define RC5_CH_MINUS		(0x1021 & RC5_MASK)		/*!< Ch - Taste */
 
+    #define RC5_CODE_AV		(0x1038 & RC5_MASK)		/*!< Taste AV */
+	#define RC5_CODE_DOT		RC5_CODE_AV
+
 	#define RC5_CODE_I_II		RC5_CODE_SELECT
 	#define RC5_CODE_TV_VCR	RC5_CODE_VIEW
 	#define RC5_CODE_MUTE		RC5_CODE_ENTER
Index: C:/eclipse/workspace/ct-Bot/Changelog.txt
===================================================================
--- C:/eclipse/workspace/ct-Bot/Changelog.txt	(revision 1354)
+++ C:/eclipse/workspace/ct-Bot/Changelog.txt	(working copy)
@@ -1,5 +1,7 @@
 CHANGELOG fuer c't-Bot
 ======================
+2008-02-28 Frank Menzel [Menzelfr@xxxxxxx]: RC5_CODE_DOT auf Promo 8 auf AV-Taste sowie Bug im verhalten Drive_Stack korrigiert
+
 2008-02-25 Timo Sandmann [mail@xxxxxxxxxxxxxxx]: MMC-Zugriff beschleunigt (RAM-Zugriff in die Warteschleife verschoben)
 
 2008-02-19 Timo Sandmann [mail@xxxxxxxxxxxxxxx]: ct-Bot.c aufgeraeumt, Commandline-Zeug nach pc/cmd-tools_pc.c und Sensor-Test nach sensor.c ausgelagert
Index: C:/eclipse/workspace/ct-Bot/.settings/org.eclipse.cdt.core.prefs
===================================================================
--- C:/eclipse/workspace/ct-Bot/.settings/org.eclipse.cdt.core.prefs	(revision 0)
+++ C:/eclipse/workspace/ct-Bot/.settings/org.eclipse.cdt.core.prefs	(revision 0)
@@ -0,0 +1,3 @@
+#Thu Feb 28 21:53:38 CET 2008
+eclipse.preferences.version=1
+indexerId=org.eclipse.cdt.core.fastIndexer