c't Projekte - c't-Bot und c't-Sim -
Mailinglisten
[Voriger (Datum)]
[Nächster (Datum)]
[Voriger (Thread)]
[Nächster (Thread)]
[Nach Datum][Nach Thread]
Absender: Frank Menzel
Datum: Mi, 14.11.2007 17:14:29
In-reply-to:
<D87E47C3-657E-401E-AED8-02636B4F8D59@xxxxxxxxxxxxxxx>
Hallo,
als Anhang der patch zum Ändern der float- nach int16-Anzeigewerte.
Anstatt der akt. Position wurde auch immer das aktuelle Ziel angezeigt;
habe ich gleich mit geändert.
Gruß, Frank
-----Ursprüngliche Nachricht-----
Von: ct-bot-entwickler-bounces@xxxxxxxxxxxxxxxxx
[mailto:ct-bot-entwickler-bounces@xxxxxxxxxxxxxxxxx] Im Auftrag von Timo
Sandmann
Gesendet: Montag, 12. November 2007 11:36
An: Entwicklung rund um den c't-bot
Betreff: Re: AW: [ct-bot] Verhalten
behaviour_goto_pos->transport_pillar_behaviour
Am 12.11.2007 um 11:11 schrieb Frank Menzel:
> Hallo,
> prima. Die Variablen sind auch float und daher habe ich sie mit Float
> angezeigt. Kann man natürlich auch als In anzeigen, da ja sowieso
> keine
> Kommastellen ausgegeben werden.
ja der Bot kann aber so ohne weiteres keine floats mit printf
anzeigen, da kommen dann nur Fragezeichen, das ist das Problem... Ich
denke mal die meisten Leute werden nicht manuell die printf-fl-lib
linken wollen.
Gruß Timo
_______________________________________________
ct-bot-entwickler Mailingliste
ct-bot-entwickler@xxxxxxxxxxxxxxxxx
http://www.heise.de/bin/newsletter/listinfo/ct-bot-entwickler
Index: C:/eclipse/workspace/ct-Bot/bot-logic/behaviour_transport_pillar.c
===================================================================
--- C:/eclipse/workspace/ct-Bot/bot-logic/behaviour_transport_pillar.c (revision 1308)
+++ C:/eclipse/workspace/ct-Bot/bot-logic/behaviour_transport_pillar.c (working copy)
@@ -547,11 +547,11 @@
*/
void transportpillar_display(void) {
display_cursor(1, 1);
- display_printf("S-Z %1.0f %1.0f %1.0f %1.0f",startpad_x,startpad_y,destpad_x,destpad_y);
+ display_printf("S-Z %1d %1d %1d %1d",(int16)startpad_x,(int16)startpad_y,(int16)destpad_x,(int16)destpad_y);
display_cursor(2, 1);
- display_printf("akt.Ziel: %1.0f %1.0f",target_x,target_y);
+ display_printf("akt.Ziel: %1d %1d",(int16)target_x,(int16)target_y);
display_cursor(3, 1);
- display_printf("akt.Pos: %1.0f %1.0f",target_x,target_y);
+ display_printf("akt.Pos: %1d %1d",(int16)x_pos,(int16)y_pos);
display_cursor(4, 1);
display_printf("Go: 9/SetPos: 7");
Index: C:/eclipse/workspace/ct-Bot/include/bot-logic/available_behaviours.h
===================================================================
--- C:/eclipse/workspace/ct-Bot/include/bot-logic/available_behaviours.h (revision 1308)
+++ C:/eclipse/workspace/ct-Bot/include/bot-logic/available_behaviours.h (working copy)
@@ -41,7 +41,7 @@
//#define BEHAVIOUR_FOLLOW_WALL_AVAILABLE /*!< Follow Wall Explorer Verhalten */
-//#define BEHAVIOUR_TRANSPORT_PILLAR_AVAILABLE /*!< Transport-Pillar Verhalten */
+#define BEHAVIOUR_TRANSPORT_PILLAR_AVAILABLE /*!< Transport-Pillar Verhalten */
#define BEHAVIOUR_REMOTECALL_AVAILABLE /*!< Nehmen wir Remote-kommandos entgegen? */
#define BEHAVIOUR_CANCEL_BEHAVIOUR_AVAILABLE /*!< Deaktivieren eines Verhaltens wenn Abbruchbedingung erfuellt */
Index: C:/eclipse/workspace/ct-Bot/Changelog.txt
===================================================================
--- C:/eclipse/workspace/ct-Bot/Changelog.txt (revision 1308)
+++ C:/eclipse/workspace/ct-Bot/Changelog.txt (working copy)
@@ -1,5 +1,7 @@
CHANGELOG fuer c't-Bot
======================
+2007-11-14 Frank Menzel [Menzelfr@xxxxxxx]: behaviour_transport_pillar: Anzeigewerte fuer Display von float nach int16 geaendert
+
2007-11-12 Frank Menzel [Menzelfr@xxxxxxx]: behaviour_transport_pillar: Bot faehrt zwischen Start- und Zielpos. hin und her und kann dabei Dosen fangen und transportieren; die bisher diversen Fahrverhalten sind hier unter einem Dach vereint und via Defines waehlbar
2007-11-11 Timo Sandmann [mail@xxxxxxxxxxxxxxx]: Datentypen in command.c korrigiert
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 @@
+#Wed Nov 14 16:59:50 CET 2007
+eclipse.preferences.version=1
+indexerId=org.eclipse.cdt.core.fastIndexer