Go to Post I always wondered what would happen if two robots mated. - Greg Needel [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 04-02-2003, 15:57
Jeremy J's Avatar
Jeremy J Jeremy J is offline
Registered User
#0871 (West Islip Robotechs)
 
Join Date: Jan 2003
Location: West Islip, NY
Posts: 10
Jeremy J is an unknown quantity at this point
Send a message via ICQ to Jeremy J Send a message via AIM to Jeremy J Send a message via Yahoo to Jeremy J
Wierd basic init

I'm trying to get a gyro sensor to output to a motor controlled by a joystick, by setting the joystick port to the sensor. I'm getting a basic init error when I try to do this. Anybody got any clues why?
__________________
"...at about this time, somebody will be telling you to get on the plane, on the plane, on the plane. I say **** you, I'm getting IN the plane!" - George Carlin
-2002 Rookie All-Star
-2003 LI Regional 2nd place
  #2   Spotlight this post!  
Unread 04-02-2003, 16:58
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
Basic Inits usually occur when your constants (c_p1_x, c_sensor1, etc) don't match your SERIN. If you drop your code in RoboEmu, it can usually detect these errors for you. Otherwise, feel free to post code here and I'd be happy to take a look at it.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #3   Spotlight this post!  
Unread 05-02-2003, 20:59
Iain Iain is offline
Registered User
#1007
 
Join Date: Jan 2003
Location: Atlanta, Georgia
Posts: 30
Iain is an unknown quantity at this point
Yeah, we've had two instances where our other programmer changed the serin command without remembering to change the initialization constants to match, and couldn't figure out what was causing the error.

He, unlike me, actually knows BASIC, but I, unlike him, have studied the specifics of PBASIC and the robot controller fairly closely, so we have to work together on this stuff.
  #4   Spotlight this post!  
Unread 05-02-2003, 22:08
wwrye wwrye is offline
Registered User
#0057 (Leopards)
 
Join Date: Jan 2003
Location: Houston
Posts: 18
wwrye is an unknown quantity at this point
Exclamation serin

As long as no changes have been made to the 'PBASIC - MASTER uP INITIALIZATION ROUTINE, the section right before the main do loop starts, then you have a problem with your serin command and or your 'DEFINE CONSTANTS FOR INITIALIZATION section. Look at those 2 sections and assure that for every constant set to 1, there is a corresponding variable in the correct order in the serin command.
  #5   Spotlight this post!  
Unread 06-02-2003, 01:35
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
I've found if I leave debug statements in my code, upload the program, and unhook the serial cable it gives me a Basic Init Error. This never happened in previous years though.

Check your program for any debug statements and try commenting them out.
  #6   Spotlight this post!  
Unread 06-02-2003, 11:42
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
The new PBASIC 2.5 allows for two-way debugging... i.e. the computer can send stuff back to the stamp.
__________________
-Ryan

"You're not a real programmer until you end all your sentences with semicolons;"
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
Impending BASIC Stamp Editor Beta 2 release Greg Ross Programming 9 19-09-2003 06:05
Basic Run Error BBFIRSTCHICK Programming 10 02-04-2003 22:43
Manchester Rgnl. ETREMELY basic scouting DB Rick Regional Competitions 9 24-02-2003 19:07
no basic stamp found! DLyons Programming 7 23-12-2002 22:17
Basic Init Error yan184 Programming 5 14-12-2002 13:10


All times are GMT -5. The time now is 04:26.

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