## c't-Projekte - Mailinglisten

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

### Re: [ct-bot] rc5_bot_next_behaviour -> Toggle Fehler

Absender: Benjamin Benz
Datum: Fr, 24.03.2006 11:35:28
In-reply-to: <812F86EC9E1A96489D5E83C2AB7D68860AB020@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <812F86EC9E1A96489D5E83C2AB7D68860AB020@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

    Danke für den Tipp. Ist gefixt

    MfG Benjamin Benz

    Menzel, Frank IT-OO4 wrote:
    >
    > Hallo,
    > Die Routine ist wohl fehlerhaft, das togglen geht so nicht:
    >
    > void rc5_bot_next_behaviour(RemCtrlFuncPar *par) {
    >
    > 	static char state =0;
    >
    > 	state++;
    > 	if (state==2)
    > 		state=1;
    >
    > 	switch (state) {
    > 		case 0: deactivateBehaviour(bot_drive_square);
    > 				 deactivateBehaviour(bot_goto_behaviour);
    > 			break;
    > 		case 1: activateBehaviour(bot_drive_square);
    > 			break;
    >
    > 	}
    > }
    >
    > Folgendes muß geändert werden:
    > if (state==2)
    > 		state=0;
    >
    > War wohl nur eine kleine Unachtsamkeit...
    >
    > achiem
    >
    >
    > Confidentiality note:
    > The information in this email and any attachment may contain confidential and proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may cause liability. In case you have received this message due to an error in transmission, we kindly ask you to notify the sender immediately and to delete this email and any attachment from your system.
    >
    > _______________________________________________
    > ct-bot-entwickler Mailingliste
    > ct-bot-entwickler@xxxxxxxxxxxxxxxxx
    > http://www.heise.de/bin/newsletter/listinfo/ct-bot-entwickler
    >

    --
    Benjamin Benz
    Heise Zeitschriften Verlag
    Redaktion c't
    eMail: bbe@xxxxxxxx
    WWW  : http://www.heise.de

- Referenzen:
  - [ct-bot] rc5_bot_next_behaviour -> Toggle Fehler
    - From: Menzel, Frank IT-OO4

- Voriger (Datum): Re: [ct-bot] signed vs. unsigned char, Benjamin Benz
- Nächster (Datum): Re: [ct-bot] signed vs. unsigned char, Fabian Recktenwald
- Voriger (Thread): [ct-bot] rc5_bot_next_behaviour -> Toggle Fehler, Menzel, Frank IT-OO4
- Nächster (Thread): [ct-bot] signed vs. unsigned char, Markus Hennecke
- Indizes:
  - Datum
  - Thread