|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
When using RoboEmu 1.10 to test our code, it does not recognize the Square root function. It returns an error of "Error: Variable SQR2343209 does not exist. Can't get value."
Were not sure if this is caused by the fact that the number after the SQR is very large, or just that the square root function is not implemented. Just in case this helps, there used to be a problem like this relating to the Select..Case where it would say "variable >132 does not exist." --Damian Manda and the programming team of 159 |
|
#2
|
||||||
|
||||||
|
RoboEmu does not currently support square root. Maybe in version 1.11, but I'd need to do some research to figure out how exactly it works.
--Rob |
|
#3
|
|||
|
|||
|
more issues
not sure where to put this, but:
RoboEmu doesn't seem to be working as far as knowing when autonomous mode is running. Autonomous mode should be indicated by auton_mode = 1. Using debugs (before we even do anything, as well as in other places in the code), I can't ever get your program to say auton_mode = 1. It should change the value of PB_mode to accomplish this, whenver there is a serin just overwrite that variable. |
|
#4
|
||||||
|
||||||
|
Did you select "Autonomous Mode" from the Emulation menu? I haven't had any problems with it and it seems to set the bit correctly. Would you mind sending me the code you are using so I can run it through my debugging process?
|
|
#5
|
|||
|
|||
|
yes
Sure, I'll send it. Yes, I did try "autonomous mode" as well as competitions mode, and the other (human/operator...blah can't remember - non-autonomous). My debug always read that auton_mode = 0, and my code acted accordingly (my first if statement sent it straight to the program in slot one, as it should when autonomous mode is over).
|
|
#6
|
|||
|
|||
|
could you also add a match mode with the accurate amount of autonomous mode and match time?
|
|
#7
|
|||
|
|||
|
Another Problem
U need to have you code check to see if a file exists before trying to load it. It crashes when it tries to open a file that doesnt exist. I came across this problem when i renamed one of my progams. I opened a project, and it crashed.
other than that, a very solid program. Thanks alot for this tool |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RoboEmu 1.11beta1 | rbayer | Programming | 42 | 03-04-2003 13:53 |
| Obscure PBASIC for RoboEmu | rbayer | Programming | 1 | 28-03-2003 23:57 |
| Help testing RoboEmu 1.10 | rbayer | Programming | 26 | 27-01-2003 06:50 |
| Making RoboEmu 1.09 work | rbayer | Programming | 2 | 14-01-2003 00:49 |
| RoboEmu 1.06 (works with XP and 2k) | rbayer | Programming | 4 | 20-10-2002 21:47 |