## c't-Projekte - Mailinglisten

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

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

Absender: Menzel, Frank IT-OO4
Datum: Fr, 24.03.2006 09:12:45

    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.

- Antworten:
  - Re: [ct-bot] rc5_bot_next_behaviour -> Toggle Fehler
    - From: Benjamin Benz

- Voriger (Datum): Re: AW: [ct-bot] Verfeinerung des c't-Sim, Peter König
- Nächster (Datum): [ct-bot] signed vs. unsigned char, Markus Hennecke
- Voriger (Thread): [ct-bot] CVS-Update, Benjamin Benz
- Nächster (Thread): Re: [ct-bot] rc5_bot_next_behaviour -> Toggle Fehler, Benjamin Benz
- Indizes:
  - Datum
  - Thread