OCCRA
Go to Post There are no simple solutions, as every solution has its own problems. - M. Lillis [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-05-2003, 04:54 PM
nzj1's Avatar
nzj1 nzj1 is offline
Registered User
#0547 (F.E.A.R.)
 
Join Date: Jan 2003
Location: fayetteville, tennessee
Posts: 20
nzj1 is an unknown quantity at this point
java to pbasic

can I convert java to pbasic? If so anyone know where I can download one?

If there's not a java/pbasic converter can I convert it this way
java/c(+)(++)/pbasic

Last edited by nzj1 : 01-05-2003 at 04:57 PM.
  #2   Spotlight this post!  
Unread 01-05-2003, 05:04 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
no.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #3   Spotlight this post!  
Unread 01-05-2003, 05:13 PM
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
I don't know of any cross-language compilers to pbasic but for projects other than our BASIC Stamps Parallax has a Javelin Stamp that does work with a subset of Java.

Pbasic is a pretty mimimalist language. If you already know Java it should be a snap.
  #4   Spotlight this post!  
Unread 01-05-2003, 11:18 PM
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,422
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
ooo that would be soo cool. I hate PBasic. I have been wondering of it might be possible to convinve the ppl at FIRST and Innovation First to create a Java based comtrol sys for nex years competition. nah. Im probably just dreaming.
__________________
1139 Alumni
  #5   Spotlight this post!  
Unread 01-05-2003, 11:26 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
Talking

The thing is, inside your robot controller is a BASIC Stamp made by parallax. These stamps are designed for things like robot control/fun little machines. They run on PBASIC, which is essentially a simplified basic. Actually though, PBASIC Just got nicer if you look at the default source code. Now we've got SELECT/CASE statements, ELSE clauses for our IF statements, and you can put something other than an address after an IF/THEN clause. Just don't try to do that with your other BASIC Stamps!
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
  #6   Spotlight this post!  
Unread 01-08-2003, 05:03 PM
imjustmatthew's Avatar
imjustmatthew imjustmatthew is offline
Registered User
#0638 (Operation Oxidation)
 
Join Date: Jan 2003
Location: Richmond, VA
Posts: 19
imjustmatthew is an unknown quantity at this point
Send a message via AIM to imjustmatthew Send a message via Yahoo to imjustmatthew
Java would be cool...but

It would be awesome if you could program the stamps using Java, but I don't think its going to happen unless they produce a new one based on Java or some other higher-level language. (And we might be a while waiting on that)

Java doesn't have a goto command, and PBASIC can't support the methods and classes Java is based on. C+/++ is reasonable, and there's tools to do it, but Java's just to high level.

One day though, Innovation First will come around and use Java... (Hopefully)
__________________
Matthew Roy

"We propose to decompose the competition."
  #7   Spotlight this post!  
Unread 01-08-2003, 05:13 PM
authgeek1218's Avatar
authgeek1218 authgeek1218 is offline
Design/Programming Geek
#1218 (CHABots)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Philadelphia
Posts: 26
authgeek1218 is an unknown quantity at this point
Send a message via AIM to authgeek1218
I just had to make a point...

Good programs don't need goto commands!

That would be, good programs in high level languages don't need goto commands.
Sorry, it's just one of those things that bothers me...
__________________
  #8   Spotlight this post!  
Unread 01-08-2003, 05:20 PM
Ryan Meador Ryan Meador is offline
Registered User
#0190
Team Role: Electrical
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Worcester, NH
Posts: 68
Ryan Meador will become famous soon enough
Ok, here's my $0.02... Java is one of the worst languages I have ever used. C++ is definately the way to go. I would consider myself a master of C++ and intermediate at java. I'd sooner use PBASIC, perl, or even assembly than java. There's OOP, and then there's unreasonablely difficult and ugly code because OOP has gone way, way too far. It should be noted I'm also very much against C#
__________________
-Ryan

"You're not a real programmer until you end all your sentences with semicolons;"
  #9   Spotlight this post!  
Unread 01-08-2003, 05:21 PM
authgeek1218's Avatar
authgeek1218 authgeek1218 is offline
Design/Programming Geek
#1218 (CHABots)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Philadelphia
Posts: 26
authgeek1218 is an unknown quantity at this point
Send a message via AIM to authgeek1218
C# I understand...

PLEASE PM ME and tell me why in the world you hate Java. I'm interesting in hearing your reasoning.
__________________
  #10   Spotlight this post!  
Unread 01-09-2003, 05:29 PM
PyroPhin's Avatar
PyroPhin PyroPhin is offline
Registered User
None #0263
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Frozen Wasteland, NY
Posts: 68
PyroPhin is on a distinguished road
it's a Robot.. not a shuttle to the moon...

why would you ever need anything more powerfull than Pbasic to map inputs to outputs and maybe a few simple logic lines? that seems like such overkill to me. our team (and me personally) have done alot of pretty advanced stuff with the Pbasic and minus a little bit of frustration, they have all been reachable with the existing setup

another thing, your a rookie team.. wich is easier to learn, C, java or whatnot or Pbasic?

~Pyro
__________________
Squee!
-=-=-=-==-=-=-=-==-=-=-==-
Team 263, Aftershock:
Alumni, guy who comes back and fixes Krass's mistakes
  #11   Spotlight this post!  
Unread 01-09-2003, 06:15 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
I think that with the changes in PBASIC 2.5, it is becoming a repectable language. I think the biggest thing about it that bothered me was the syntax for the IF/THEN statements (IF condition) THEN address: ), but that has been changed!! (IF (condition) THEN codeGoesHere! ). That's a major improvement. It means that the code is suddenly a LOT cleaner, with a lot less jumps around the code. I already wonder how I got along without that...

I feel that PBASIC provides a very good medium for the FIRST robotics competition programming. First, it's related to BASIC, which is a very popular language that is (pardom the pun) very basic. It's easy for novice teams to grasp, and allows Innovation first to use the inexpensive BASIC Stamps by parallax to power the robot controllers. In addition, PBASIC allows novice programmers robots to perform almost as well as those of the veteran programmers. (I know that many of you might disagree with that statement, but I believe it to be true.)

Also, while the PBASIC Stamps provide enough processing power and memory for our needs, we still must learn to conserve space, keep code short and optimized, and write it efficiently. (This would be where an experienced programmer can defeat the novice)

With all that said, is anyone planning on running checks testing the efficiency of PBASIC 2.5 code versus 2.0 code? I would be interested to see which runs faster. If no one else is, I would run a couple tests.
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
  #12   Spotlight this post!  
Unread 01-09-2003, 06:24 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
The thing to keep in mind is that nothing is new on the hardware level. Truth be told, the new interpreter probably just converts this new syntax to the old style.

For example,

if <condition> then <expression>
-converts to-
if NOT <condition> then no_exp
<expression>
no_exp

SELECT expr
CASE a TO b
expr1
CASE c to d
expr2
case else
expr3
endselect
-converts to-
if expr>a AND expr<b then case1
if expr>c AND expr<d then case2
expr3
goto end_select
case1:
expr1
goto end_select
case2:
expr2
goto end_select
end_select:
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
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 03-28-2003 10:57 PM
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 02-09-2003 09:06 PM
Java Books Yan Wang Programming 1 12-27-2002 03:26 PM
Simplifying PBasic IDiggles General Forum 16 11-06-2001 12:36 AM
No Java for XP Kyle Fenton Chit-Chat 21 07-23-2001 07:15 PM


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