To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.robolabOpen lugnet.robotics.rcx.robolab in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / ROBOLAB / 270
269  |  271
Subject: 
Re: Patched firmware to improve rotation sensor, was Re: Robolab, byte codes and assembler
Newsgroups: 
lugnet.robotics, lugnet.robotics.rcx.robolab
Date: 
Sat, 29 Nov 2003 23:47:18 GMT
Reply-To: 
Dick Swan <dickswa@sbcglobal.netSPAMCAKE>
Viewed: 
3814 times
  
"Philippe Hurbain" <philohome@free.fr> wrote in message
news:Hp4JAs.oK8@lugnet.com...
Hello Dick,

Looks great, but it doesn't seem to work well here:

Much to my embarassment, I have to agree with Philippe that the patch
doesn't work very well. I try to figure out what went wrong.

- counts up 2 by 2, but counts down correctly one by one
This is the expected performance as described in the example in my
original post. The
"+1" state is an "ambiguous condition.


- loses count, especially when counting up.
If I can't fix it, then I'll do a different patch to grab the
implementation from BrickOS which uses a different algorithm.


My tests were done with a brand new, unmodified rotation sensor. I • mounted a
wheel on it and rotated it slowly by hand. The sensor works "as bad • as usual"
with regular firmware.

I don't think I made a mistake while patching firmware...

I hope you will find the problem ;o)

Thanks for your time and energy,

Philo

I'll



Message has 2 Replies:
  Re: Patched firmware to improve rotation sensor, was Re: Robolab, byte codes and assembler
 
(...) Doesn't that mean that at any given count, you could still be off by 1, but now the odds of having an incorrect count are 50-50 instead of about one in 500? (...) There has been some discussion about whether this patch will work with Robolab, (...) (21 years ago, 30-Nov-03, to lugnet.robotics, lugnet.robotics.rcx.robolab)
  Re: Patched firmware to improve rotation sensor, was Re: Robolab, byte codes and assembler
 
(...) It took me some time to figure out why, but you are right, the ambiguous transitions occur only while counting up. What you could do though would be to count +1 while going from state3 to state2_ambiguous, and correct "phantom transition" by (...) (21 years ago, 30-Nov-03, to lugnet.robotics, lugnet.robotics.rcx.robolab)

Message is in Reply To:
  Patched firmware to improve rotation sensor, was Re: Robolab, byte codes and assembler
 
Hello Dick, Looks great, but it doesn't seem to work well here: - counts up 2 by 2, but counts down correctly one by one - loses count, especially when counting up. My tests were done with a brand new, unmodified rotation sensor. I mounted a wheel (...) (21 years ago, 29-Nov-03, to lugnet.robotics, lugnet.robotics.rcx.robolab)

17 Messages in This Thread:








Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR