It is currently Sat May 25, 2013 6:18 am
       


All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Probleme mit Steuerung über Odometire
PostPosted: Fri Sep 09, 2011 9:42 pm 
Offline
arexx.com user

Joined: Wed Aug 10, 2011 8:44 am
Posts: 16
HAllo,

Ich lasse gerade meinen Asuro mittels Odometrie im Kreis drehen ... Er soll immer im Abstand von 5 Schwarz Weis Wechseln kurz anhalten und dann weiter derehen.

Macht er ... nur mach immer wieder nur einen Kleinen fast unmerklichen Rucker und brauch ein bisschen bis er weiter macht, manchmal muss man ihn wieder anschucken und es läuft wieder für eine Gewisse Zeit.

Kann mir jemand helfen?

Anbei fals erforderlich der Code

Code:
#include "asuro.h"
#include "print.c"
#include "time.c"

int main(void)
{
   Init();
   
   int data[2];
   int SoderWneu;
   int SoderWalt;
   int Umdre = 0;
   MotorDir(FWD,RWD);
   MotorSpeed(120, 120);
   
   while (1)
   {
   MotorDir(FWD,RWD);
   MotorSpeed(100, 100);
   OdometrieData(data);

   if (data[0] <= 480)
   {
      SoderWneu = 0;
   }
   else
   {
      SoderWneu = 1;
   }
   
   if (SoderWneu == SoderWalt)
   {
      SoderWalt = SoderWneu;
   }
   else
   {
      SoderWalt = SoderWneu;
      Umdre = Umdre + 1 ;
   }
   if (Umdre >= 5)
   {
      Umdre = 0;
      SoderWalt = SoderWneu;
      MotorDir(BREAK,BREAK);
      MotorSpeed(0,0);
      BackLED(ON,ON);
      Msleep(1000);
   }
   BackLED(OFF,OFF);
   }
   return 0;
}

_________________
Mit freundlichen Grüßen,

Thor

Youtube Chanel
http://www.youtube.com/user/ErebosKi3?feature=mhee


Top
 Profile E-mail  
 
 Post subject: Re: Probleme mit Steuerung über Odometire
PostPosted: Tue May 15, 2012 12:25 pm 
Offline
arexx.com user

Joined: Thu Oct 16, 2008 1:08 pm
Posts: 190
Ich habe dein Programm nicht genau angesehen, aber jedenfalls kann ich feststellen das Odometriezahlung und die BackLEDs nicht zusammen arbeiten. Sie benutzen die selbe Leiterbahnen. BackLEDS an = Odometrie aus.

Oops, sehr altes Thema. Bitte weiter schlafen gehen. ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group