Go to Post Stacking totes on end; Gives you extra height, alas; Topples with a sneeze. - BethMo [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-10-2002, 07:28
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
RoboEmu 1.07

Well, I just finished version 1.07 of RoboEmu, and it includes some fairly substantial changes.

First, relay and PWM outputs are now both graphical instead of just text-based. The sliders also work a little better if you click somewhere in the middle of them.

The big difference, though, is that you can now see the output of the eight LEDs (out8-out15) in the Output Window. I also fixed the debug window, which didn't scroll properly after 4096 characters.

As always, it's available in the whitepapers (called RoboTools) or at http://FIRSTprograms.tripod.com/Programs.htm.

Please let me know what you think of the changes, either in a reply here, or PM/email me.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #2   Spotlight this post!  
Unread 05-12-2002, 15:38
Adrian Wong Adrian Wong is offline
Registered User
#0596 (SciClones)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Hopkinton, Mass.
Posts: 146
Adrian Wong is an unknown quantity at this point
Send a message via AIM to Adrian Wong
Does your program make proper accomodations for integer math and byte overflow?

I've been having trouble with a bit of code that I wrote for a throttle. When placed on the robot, it does not work at all. When placed in RoboEmu, it works just as I expected. There must be some difference between the PC emulator and the PBASIC chip that I'm not noticing. The weird part is that it works on the emulator and not on the robot (instead of the other way around). Any help?

The code is as follows:

LDRILL = ((LDRILL * p1_wheel) / 255) + ((255 - p1_wheel) / 2)
RDRILL = ((RDRILL * p1_wheel) / 255) + ((255 - p1_wheel) / 2)

LDRILL and RDRILL are both variables of byte length.
  #3   Spotlight this post!  
Unread 08-12-2002, 18:20
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
In theory, everything is correctly incorrect. However, I'm not sure how perfect it really is. Anyway, what exactly do you mean by "does not work at all"? Does the BASIC error light come on, or does it just not move? In either case, have you tried doing a debug on LDRILL and RDRILL?

As soon as InnovationFIRST actually follows through with a deadline and posts the documents for this year, I'm going to sit down and re-write RoboEmu and RoboGUI to reflect whatever changes (if any) they make. I'll take a closer look at the overflow issues at that point.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #4   Spotlight this post!  
Unread 08-12-2002, 18:28
Adrian Wong Adrian Wong is offline
Registered User
#0596 (SciClones)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Hopkinton, Mass.
Posts: 146
Adrian Wong is an unknown quantity at this point
Send a message via AIM to Adrian Wong
Theoretically, there would be no overflow since 65025 [the largest value that would turn up in the code] is within the 65535 bit space. Alas, that does not appear to be.

I have not made specific records of the bug, but I recall that the motor outputs would move to 127 only if I pulled the joystick all the way back (p1_y = 0). The LDRILL and RDRILL variables are simply outputs from the regular one-joystick tank drive code. If the joystick is centered or pushed forward, the wheels spin at maximum speed forward. The output seems to be wired to the status of p1_wheel, since I can dial that down to 0, and the wheels would stabilize at 127 again.

Once I return to the lab on Tuesday, I can make detailed records of the PWM values that come out for a given input. Perhaps that will yield a more fruitful investigation.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RoboEmu 1.11beta1 rbayer Programming 42 03-04-2003 13:53
Obscure PBASIC for RoboEmu rbayer Programming 1 28-03-2003 23:57
RoboEmu 1.09 (supports PBASIC 2.5) rbayer Programming 22 21-01-2003 17:22
Making RoboEmu 1.09 work rbayer Programming 2 14-01-2003 00:49
RoboEmu 1.08 released rbayer Programming 9 26-12-2002 22:31


All times are GMT -5. The time now is 07:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi