 | | question about inputs & outputs
|
|
ok this is a funky idea, but I've already got some evidence it can work. I *really* need 4 outputs, but I only need 2 inputs for my project. Is there some way, using brickOS (I assume it's impossible without modifying firmware), to reprogram an (...) (22 years ago, 1-Dec-04, to lugnet.robotics)
|
| |
 | | Re: why doesn't this work?
|
|
(...) That doesn't totally seem right. I would think it would slow, before stoping. One last thing to try is actually storing sensor value in the array. Also, in the Checkvar function, it looks like the line: if(temp<27) temp=0; should say (...) (22 years ago, 1-Dec-04, to lugnet.robotics)
|
| |
 | | Re: why doesn't this work?
|
|
(...) Your exactly right, the results are a sequence 1-20, meaning that it takes 20 sensor changes to go from full speed to stop. The rest of the array is zero's as it should be, so the program works perfectly. I'm amazed though that the rotation (...) (22 years ago, 30-Nov-04, to lugnet.robotics)
|
| |
 | | Re: AFOLs and Mindstorms
|
|
(...) I'll bet the rules are still subject to change. If anyone has an opinion, about what would be better, they should express it to Jake and Jan Steve (22 years ago, 30-Nov-04, to lugnet.lego, lugnet.robotics)
|
| |
 | | Re: AFOLs and Mindstorms
|
|
(...) Sorry for taking so long to follow-up on this! A few answers from Jan: The Programming environment: You will get a normal Mindstorms set from us, the latest version. Software: see above, normal LEGO Mindstorms Software Jake --- Jake McKee (...) (22 years ago, 30-Nov-04, to lugnet.lego, lugnet.robotics)
|
| |
 | | Re: why doesn't this work?
|
|
(...) I think that means for the first 27 times through the loop, the value for SENSOR_1 changes every time. So all the values would be 0 or 1. Instead of storing the timeout, try creating a seperate counter that's incromented each time through the (...) (22 years ago, 30-Nov-04, to lugnet.robotics)
|
| |
 | | Re: AFOLs and Mindstorms
|
|
(...) Three hours for building and programming is *extremely* tight, even with a second two hour session the next day if everything had to be done from scratch. I've run a couple of competitions that way, but only because more time wasn't available. (...) (22 years ago, 30-Nov-04, to lugnet.lego, lugnet.robotics)
|
| |
 | | Re: why doesn't this work?
|
|
(...) 2000 (...) Yes (it shows up fine on the watch graph) Steve here's the whole program #define TRUE 1 #define FALSE 0 int Vvariable; int Aforward=1; int speed; int maxspeed=0; int timeout=0; int array[27]; task main() { //start speedcontrol; (...) (22 years ago, 30-Nov-04, to lugnet.robotics)
|
| |
 | | Re: AFOLs and Mindstorms
|
|
(...) The main thing is that it's even for everyone. Allowing everyone to bring pre-written code is fair. On the other hand, not allowing anyone to bring pre-written code would also be fair. It kind of comes down to how they want to organize the (...) (22 years ago, 30-Nov-04, to lugnet.lego, lugnet.robotics)
|
| |
 | | Re: why doesn't this work?
|
|
(...) What is the value of inc when you're done? And, is SENSOR_1 defined as a rotation sensor? (and active?) Steve (22 years ago, 30-Nov-04, to lugnet.robotics)
|