Go to Post Just remember that you can get just as much inspiration from making a simple system's details work really well as you can from just making a complex system work... - Rob [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-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 01-04-2003, 07:29 PM
Noah's Avatar
Noah Noah is offline
Code Monkey
#0861 (The Gondobots)
Team Role: Programmer
 
Join Date: Apr 2002
Location: Venice, California
Posts: 139
Noah has a spectacular aura aboutNoah has a spectacular aura about
Send a message via AIM to Noah
Cool PBASIC Conversion

Since the default code is not valid, I went ahead and converted it to "old style" PBASIC 2.0c. I don't have anything to test it on tho, so someone please check me here.
Attached Files
File Type: txt rc_def_2003_pbasic_valid.bsx.txt (26.4 KB, 77 views)
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
  #2   Spotlight this post!  
Unread 01-04-2003, 07:33 PM
cybermind cybermind is offline
Registered User
#1046 (PRISM Robotics)
 
Join Date: Jan 2003
Location: Palm Desert, CA
Posts: 16
cybermind is an unknown quantity at this point
Send a message via AIM to cybermind
I tried to tokenize it on the BASIC Stamp Editor 1.33 and it works just fine after the following changes:

Delete the '{$PBASIC 2.5} line
Put the SERIN on one line
Put the SEROUT on one line

After those changes it Tokenized successfully.
  #3   Spotlight this post!  
Unread 01-04-2003, 07:39 PM
Noah's Avatar
Noah Noah is offline
Code Monkey
#0861 (The Gondobots)
Team Role: Programmer
 
Join Date: Apr 2002
Location: Venice, California
Posts: 139
Noah has a spectacular aura aboutNoah has a spectacular aura about
Send a message via AIM to Noah
Oh, ok... in that case the default code is much nicer than mine. Glad to hear that.
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
  #4   Spotlight this post!  
Unread 01-04-2003, 08:08 PM
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
Quote:
Originally posted by cybermind
I tried to tokenize it on the BASIC Stamp Editor 1.33 and it works just fine after the following changes:

Delete the '{$PBASIC 2.5} line
Put the SERIN on one line
Put the SEROUT on one line

After those changes it Tokenized successfully.
Ummm... how? It still complains about the missing labels after the "then" in all the if statements and it has no idea that the word select is supposed to be a command.

Noah: Nice work. You probably want to nuke that darn $PBASIC 2.5 directive, though. It just isn't valid as far as I can tell. Also, if you want to test, go ahead and drop it in RoboEmu. Available at my website: http://www.robbayer.com/software.html
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #5   Spotlight this post!  
Unread 01-04-2003, 08:10 PM
cybermind cybermind is offline
Registered User
#1046 (PRISM Robotics)
 
Join Date: Jan 2003
Location: Palm Desert, CA
Posts: 16
cybermind is an unknown quantity at this point
Send a message via AIM to cybermind
NOOOO!
I didn't get the Default to work....I got Noah's to work after the changes...I probably should have been more specific. Hey, I'm a rookie, so that's ok
  #6   Spotlight this post!  
Unread 01-05-2003, 12:28 AM
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,244
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
It looks to me like there is a new version of the BASIC Stamp Editor or tokenizer which recognizes the $PBASIC directive, and makes the if...then...else...endif and select...case...endselect syntax valid.... I just haven't been able to find it yet.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
ôLife should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #7   Spotlight this post!  
Unread 01-05-2003, 09:30 AM
Goya Goya is offline
Registered User
#0019 (Big Red)
 
Join Date: Jan 2003
Location: Greenwich, CT
Posts: 35
Goya is an unknown quantity at this point
Send a message via AIM to Goya
In fact, parallax.com offers a new commercial software version for the basic stamp editor. Version 1.5!

Could it be that this editor supports the PBASIC stamp?
Could it be that the PBASIC stamp was meant to read 1.5 and not 2.5?

BTW - the new editor is much more "spruced" up. I didn't notice any new commands, since the default code did not work, with the same errors as the other editors.

FYI - Also, RoboEMU complains about the serout command.
  #8   Spotlight this post!  
Unread 01-05-2003, 11:17 AM
Chris_C Chris_C is offline
Registered User
None #0131
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Manchester, NH
Posts: 15
Chris_C is an unknown quantity at this point
Send a message via AIM to Chris_C
I heard by word of mouth on Friday from two Innovation First guys that a new release of the parrallax software that fully supports all the new commands can be expected within a day or two. I don't know if that is still true, since they seemed to think the release would be happening yesterday or the day before. They didn't mention any version numbers, so I can't help you there.
  #9   Spotlight this post!  
Unread 01-05-2003, 11:48 AM
iscrc2 iscrc2 is offline
Registered User
#0568 (Nerds of the North)
 
Join Date: Jan 2002
Location: Anchorage, Alaska
Posts: 28
iscrc2 is an unknown quantity at this point
This post on the parallax yahoo forums http://groups.yahoo.com/group/basicstamps/message/27596
makes it sound like parallax will be a few weeks (mid/late January) until they release the new version.
  #10   Spotlight this post!  
Unread 01-05-2003, 07:28 PM
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
Quote:
Originally posted by Goya
In fact, parallax.com offers a new commercial software version for the basic stamp editor. Version 1.5!

Could it be that this editor supports the PBASIC stamp?
Could it be that the PBASIC stamp was meant to read 1.5 and not 2.5?

BTW - the new editor is much more "spruced" up. I didn't notice any new commands, since the default code did not work, with the same errors as the other editors.

FYI - Also, RoboEMU complains about the serout command.
Are you referring to CodeDesigner BSE? I can tell you that it does NOT support PBASIC 2.5 as I have the demo version and have tried to get the new syntax to compile. No luck.

As for RoboEmu, it will complain because the Serout isn't all on one line. It doesn't complain about the rest of it because it is currently setup to ignore commands it doesn't recognize (ie SELECT, etc). This meant I didn't have to add support for commands like HIGH and LOW.

Anyway, I'm in the process of updating RoboEmu as we speak and it should support all the new constructs, but I'm going to need help testing it. Look for 1.09 within 24 hours of the official release from Parallax.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #11   Spotlight this post!  
Unread 01-07-2003, 10:33 PM
Noah's Avatar
Noah Noah is offline
Code Monkey
#0861 (The Gondobots)
Team Role: Programmer
 
Join Date: Apr 2002
Location: Venice, California
Posts: 139
Noah has a spectacular aura aboutNoah has a spectacular aura about
Send a message via AIM to Noah
For clarification, innovationfirst's site now tells us that a PBASIC 2.5 editor is expected to be available on the 10th. They also have posted 2.0 valid PBASIC default programs.
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
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
PBASIC ARCTAN function Greg Ross Programming 14 05-11-2003 11:28 AM
Need to learn PBASIC...Where Should I Go? IMDWalrus Programming 5 04-29-2003 03:43 PM
Obscure PBASIC for RoboEmu rbayer Programming 1 03-28-2003 10:57 PM
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 02-09-2003 09:06 PM
PBasic Question Melissa H. Programming 28 11-17-2002 05:53 PM


All times are GMT -5. The time now is 05:32 AM.

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


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