Go to Post There are two types of competitors in this world, those who aim to rise above their opponents and those who seek to drag them down. Which group do you want to belong to? Which group is more beneficial to our society? Think about it. - Karthik [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 09-01-2003, 02:49
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.09 (supports PBASIC 2.5)

Well, I'm only 6 hours (or 30, depending on which promise) late, but here it is: RoboEmu 1.09. It includes support for everything in the spiffy new default code, as well as a number of bug fixes and new features.

Notably, it now supports PBASIC 2.5, has a user_mode display, supports autonomous mode. There's also some experimental support for user-changeable run speeds, but that may go away in the next version depending on how it works

As always, it's available at http://www.robbayer.com/software.html or in the white papers.

I know I ask this every time, but it's especially necesary this time: let me know how it works! I've checked everything I could think of, but with a whole new language, I'm sure I missed something. Likewise, I would like to know if anybody finds any other PBASIC 2.5 commands aside from SELECT, DO, LOOP, and the new forms of IF.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #2   Spotlight this post!  
Unread 09-01-2003, 06:45
Caleb Fulton's Avatar
Caleb Fulton Caleb Fulton is offline
Z = Z^2 + C ......WHEEEE!
AKA: aXvXiA
#0461 (West Side Boiler Invasion)
Team Role: College Student
 
Join Date: Dec 2002
Location: West Lafayette, Indiana
Posts: 205
Caleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura about
Send a message via AIM to Caleb Fulton
I'd just like to thank you for your continuing service to the FIRST community, Rob!!!!
__________________
  #3   Spotlight this post!  
Unread 09-01-2003, 12:13
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
Thanks. Your programs are REALLY helpful!
  #4   Spotlight this post!  
Unread 09-01-2003, 13:27
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
You're all very welcome. As long as people keep using them, I'll keep maintaining them.

I do have one question for some PBASIC gurus out there: What makes a line a complete command? I realized that I forgot to add the ability for commands to span multiple line to version 1.09, mainly because I spent a lot of time trying to figure out how to determine whether a line was "complete" or whether it spilled over into the next one. Here's what I've got so far:

Equal number of "(" and ")". Same with [ and ]. Even number of quote marks. No commas hanging off the end.

Anything else that defines a complete statement?
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #5   Spotlight this post!  
Unread 09-01-2003, 16:29
Caleb Fulton's Avatar
Caleb Fulton Caleb Fulton is offline
Z = Z^2 + C ......WHEEEE!
AKA: aXvXiA
#0461 (West Side Boiler Invasion)
Team Role: College Student
 
Join Date: Dec 2002
Location: West Lafayette, Indiana
Posts: 205
Caleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura about
Send a message via AIM to Caleb Fulton
I *think* a backslash at the end of a line will contain the next line in the command..

like

Code:
Serin COMA\COMB, INBAUD, [oi_swA,oi_swB,rc_swA,rc_swB, \
p2_x,p1_x,p4_x,p3_x,PB_mode, \
packet_num,p2_y,p1_y,p4_y,p3_y, \
p2_wheel,p1_wheel,p4_wheel,p3_wheel]
__________________
  #6   Spotlight this post!  
Unread 09-01-2003, 16:52
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
The trailing backslash will continue the line in this preprocessor, but it is not a standard language feature. It would be nice to have support for it in RoboEmu though... I would also like to give Rob my sincere thanks for creating and maintaining such a valuable aid!
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
  #7   Spotlight this post!  
Unread 09-01-2003, 19:27
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 Caleb Fulton
I *think* a backslash at the end of a line will contain the next line in the command..
If only life were so simple...

If you look at the new default code, you will see:
Code:
Serout USERCPU, OUTBAUD, [255,255,p1_y,relayA,p2_y,relayB,p3_y,p4_y,p1_x,p2_x,p3_x,p4_x,
p1_wheel,p2_wheel,p3_wheel,p4_wheel]
I think I've gotten it straightened out now, but I want to test it a little more before I release 1.09b. The change just isn't significant enough to merit a whole new version number...
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #8   Spotlight this post!  
Unread 09-01-2003, 19:28
Gobiner Gobiner is offline
Registered User
#0753 (High Desert Droids)
 
Join Date: Nov 2002
Location: Bend, Oregon
Posts: 54
Gobiner is an unknown quantity at this point
Send a message via ICQ to Gobiner Send a message via AIM to Gobiner
Once I get some free time (haha, right) I'm planning on doing major testing. I do QA testing at a small software company, so I think I make a pretty qualified tester. Of course, my reasons are selfish, I just want the best tool possible to use when it actually matters. Just waiting for the free time to smack me in the face.
__________________
0N3 1337 PR0G|24MM1N6 N1NJ4
  #9   Spotlight this post!  
Unread 12-01-2003, 01:35
nwagers nwagers is offline
Registered User
#0240 (Mach Vee)
 
Join Date: Oct 2001
Location: Monroe, MI
Posts: 88
nwagers is an unknown quantity at this point
Send a message via AIM to nwagers Send a message via Yahoo to nwagers
could you add the OUTH variable. It's just a the Output pins 8-15. It'll make it easier to program the output byte for usermode
  #10   Spotlight this post!  
Unread 12-01-2003, 01:39
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
No problem. It's on the list of things to do for 1.10.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #11   Spotlight this post!  
Unread 14-01-2003, 19:30
Adam Collet Adam Collet is offline
Registered User
#0159 (Alpine Robotics)
 
Join Date: Nov 2002
Location: Ft. Collins, Colorado
Posts: 25
Adam Collet is an unknown quantity at this point
Select issues

OK, I'm having issues with the new RoboEmu 2.5 Select support - I know you said its beta, but maybe some specific feedback will help.

I get the error "variable >132 does not exist"
I am doing a select command similar to what follow:

Select (arm_joint1) [hint hint about 159]
Case >ajoint1+slack
'some code
Case....
..........
Case Else
.............
EndSelect

Assumably, ajoint+slack is evaluated to be 132; and your program expects a variable there.

According to the examples that Parallax gave us for 2.5, an operator should be able to come directly after the "Case" statement. I'll send you the code.
__________________
"Without the wind, the grass does not move. Without software, hardware is useless.''

Thus spake the Master Programmer

The Tao of Programming
Translated by: Geoffrey James
  #12   Spotlight this post!  
Unread 14-01-2003, 19:52
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
Hmmm... I definately never saw any documentation from Parallax, so I didn't even know you could put an operator in there like that.

You're getting the current error because it only expects expressions, meaning it evaluates them recursively. Thus it added ajoint1 and slack and then replaced the appropriate part of the expression with the value it got back. It then tried to re-evaluate the new expression, thought it was a variable because it is only one word, and tried to lookup ">132."

Thanks for the heads up and I'll try to incorporate that into the next version as it should be VERY easy to fix. I also kinda forgot about the OUTH variable, so I'll do that too.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #13   Spotlight this post!  
Unread 14-01-2003, 23:16
Adam Collet Adam Collet is offline
Registered User
#0159 (Alpine Robotics)
 
Join Date: Nov 2002
Location: Ft. Collins, Colorado
Posts: 25
Adam Collet is an unknown quantity at this point
select statement

Do you mean your program would expect something more like:

Select arm_joint1
CASE arm_joint1>ajoin+slack
etc.
etc.
EndSelect

Or that it only supports:

Select arm_joint1
CASE 0 to ajoin+slack
etc.
etc.
EndSelect

It would be much appreciated to have that update...when can we expect it?
__________________
"Without the wind, the grass does not move. Without software, hardware is useless.''

Thus spake the Master Programmer

The Tao of Programming
Translated by: Geoffrey James

Last edited by Adam Collet : 14-01-2003 at 23:21.
  #14   Spotlight this post!  
Unread 14-01-2003, 23: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
No, I mean that my program doesn't expect any operator there and tries to evaluate the expression "couter=CASE", which in this instance turned into "arm_joint1=>132". Not pretty. I'm actually kinda surprised it didn't blow up. Oh well.

I'm REALLY busy until 9:00pm Thursday night (my Eagle Scoutmaster Conference), but I'll try to work on it after that. It shouldn't take more than an hour to add the support. As soon as I finish it, I'll let you know.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #15   Spotlight this post!  
Unread 15-01-2003, 18:02
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,245
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
Randomly playing around with RoboEmu and the default code. Clicked Switch 5, and up popped "Error: Variable P3_YMAX127 does not exist. Can't get value."

Looks like single line IF...THEN doesn't handle MIN and MAX operators.
__________________
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

Last edited by Greg Ross : 15-01-2003 at 18:11.
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
Obscure PBASIC for RoboEmu rbayer Programming 1 28-03-2003 23:57
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 09-02-2003 22:06
Broken PBASIC 2.5 Complier? Mike Yan Programming 12 01-02-2003 09:11
PBASIC 2.5 Questions Noah Programming 6 10-01-2003 19:26
PBASIC 2.5 answer from Parallax JasonS Programming 6 07-01-2003 19:21


All times are GMT -5. The time now is 15: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