Subject:
|
Strange happenings
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Thu, 12 Jul 2001 01:22:39 GMT
|
Viewed:
|
2522 times
|
| |
| |
I'm using NQC 2.3r1 with the following code bit.
task Fidget() //The Fidget task
{
while (true)
{
Wait (FidgetTime);
Fwd (OUT_B);
OnFor (OUT_B,100);
HeadPos = 1;
Wait (FidgetTime);
Rev (OUT_B);
OnFor (OUT_B,100);
HeadPos = 0;
Wait (FidgetTime);
Rev (OUT_B);
OnFor (OUT_B,100);
HeadPos = 2;
Wait (FidgetTime);
Fwd (OUT_B);
OnFor (OUT_B,100);
HeadPos = 0;
}
} //End Fidget Task
Here's what it's supposed to do.
Wait the wait time then turn it's head left. Wait some more then turn
it's head back to centre. Then Right, then Center again.
Here's what it does.
Turn's left.
Makes a feable buzzing sound for the TURN right. Then moves right then
buzzes again.
Any ideas? This is so simple I can't have done it wrong?
Dean
|
|
Message has 2 Replies: | | Re: Strange happenings
|
| (...) This almost sounds like a mechanical problem. Try the program with jsu the brick connected to motors or lights and see if you get the expected result. Lester (23 years ago, 12-Jul-01, to lugnet.robotics.rcx.nqc)
| | | Re: Strange happenings
|
| Looks straighforward. Perhaps an NQC bug. Can you email me the complete program and also compile with the -l option and send me the listing (or if you're using an IDE, then there should be some menu choice to produce a disassembly list)? Dave Baum (...) (23 years ago, 13-Jul-01, to lugnet.robotics.rcx.nqc)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|