Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Wierd basic init (http://www.chiefdelphi.com/forums/showthread.php?t=17396)

Jeremy J 04-02-2003 15:57

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?

rbayer 04-02-2003 16:58

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

Iain 05-02-2003 20:59

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. :)

wwrye 05-02-2003 22:08

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.

Jay Lundy 06-02-2003 01:35

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.

Ryan Meador 06-02-2003 11:42

The new PBASIC 2.5 allows for two-way debugging... i.e. the computer can send stuff back to the stamp.


All times are GMT -5. The time now is 17:54.

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