Subject:
|
swan firmware motor problem
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Wed, 9 Aug 2006 20:11:34 GMT
|
Viewed:
|
10305 times
|
| |
| |
Hi,
I trying out the Swan firmware (Fast0103.lgo) with nqc 3.1 r4 but for some
reason the motors won't turn on. Has anybody seen something like that? If I run
the program, it does all the other things, even switch on the little motor
triangles on the lcd display, but the motors are not switched on. I have used
both:
nqc -TSwan -SUSB -d mot-tst.nqc
nqc -TRCX2 -SUSB -d mot-tst.nqc
Using the standard lego firmware (firm0328.lgo) works without a problem.
My little program looks like this:
#############################
#define LEFT OUT_C
#define RIGHT OUT_A
#define NORMAL_SPEED 7
task main()
{
SetPower(RIGHT+LEFT, NORMAL_SPEED);
Fwd(LEFT);
Fwd(RIGHT);
On(RIGHT+LEFT);
ClearTimer(1);
do {
} while (Timer(1) < 100);
Off(RIGHT+LEFT);
PlaySound(SOUND_UP);
PlaySound(SOUND_DOWN);
}
##############################
Anybody got an idea?
John
|
|
Message has 1 Reply:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|