To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1871
1870  |  1872
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:
  Re: swan firmware motor problem
 
(...) I don't have the new firmware, but maybe you can try: #define NORMAL_SPEED 100 because, now the firmware have 100 step of motor pwr control. Best Regards Gustavo (18 years ago, 11-Aug-06, to lugnet.robotics.rcx.nqc)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR