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 / 792
    Re: Scout poweroff time out? —Dave Baum
   (...) Looking at the Scout SDK, I think it does support the same sleep time command as the RCX - although perhaps not from within a program. There are two things to try: nqc -sleep 0 or add the following function to your program and call it (with (...) (24 years ago, 30-Sep-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
   
        Re: Scout poweroff time out? —Dave Baum
   (...) I just verified that both of these work. I'll fix the API for the next NQC release, but in the meantime, you can always add the following functions to your Scout programs: void SetSleepTime(const int t) { asm { 0xb1, t }; } void SleepNow() { (...) (24 years ago, 30-Sep-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
   
        Re: Scout poweroff time out? —Dean Husby
     (...) You know, I tried that. It didn't work. But then I'm using my new editor (that I'm working on) and had forgotten to set the brick type with EACH command to NQC. I only had it set to compile/Download. So the scout wouldn't be 'unlocked' until I (...) (24 years ago, 30-Sep-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
    
         Re: Scout poweroff time out? —Dave Baum
     (...) Possible, yes, but I'd prefer not to. The command line is already too complex. I might consider adding the information as part of the regular program download message (with the battery level). For devices other than Scout, there isn't a fixed (...) (24 years ago, 30-Sep-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
   
        Re: Scout poweroff time out? —Dean Husby
   (...) What other features will work? The BatteryLevel() one? I think we need to have a look at the rcx2 commands and see what's working for the Scout. Also, what does the Scout API include with the program? I know in the RCX it turns all motor ports (...) (24 years ago, 2-Oct-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
   
        Re: Scout poweroff time out? —Dave Baum
   (...) The SetSleepTime() and SleepNow() thing was just sloppiness on my part when reorganizing the NQC API file. Those opcodes are clearly documented in the Scout SDK. I don't think we have to hunt around for undocumented features - just verify that (...) (24 years ago, 3-Oct-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
   
        Re: Scout poweroff time out? —Dean Husby
   (...) Yes, I'll try to do that when I have some time... (...) That's not too bad... heh heh. I'm just shocked at how little RAM there is for programing... Maybe the 'way' I program is memory intensive. I can see an art to programing the scout (...) (24 years ago, 3-Oct-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
   
        Re: Scout poweroff time out? —Dave Baum
   (...) thanks. Comments are always welcome....that's not saying that I'll implement everything that anyone suggests, but I certainly appreciate the feedback. NQC wouldn't have gotten this far without the suggestions of the user community. Dave (24 years ago, 4-Oct-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
 

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