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 / 796 (-5)
  Re: Scout's Built-In 29 Subroutines & NQC?
 
(...) In the old Scout API there were two calls: #define local(n) (@((n) + 10)) void Call(const int n) { asm { 0x17, n }; } You can enable the API by adding -D__SCOUT_COMPAT on the command line, or just copy the above two lines into your program. (...) (24 years ago, 30-Sep-00, to lugnet.robotics.rcx.nqc)
 
  Re: Scout poweroff time out?
 
(...) 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?- Update
 
(...) After a *FEW* hours playing with this thing I've found out the following... It's built in shutdown is set for 15 minutes. Sending an IR code seems to reset this counter. So far I cannot find any way to keep it alive on it's own. If anyone (...) (24 years ago, 30-Sep-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
 
  Scout's Built-In 29 Subroutines & NQC?
 
I've been re-reading the Scout SDK and came across the following: "Program Block Library (subroutines) The Scout has an extensive subroutine library of general-purpose functions that can help reduce the size of downloaded user programs. Many of the (...) (24 years ago, 30-Sep-00, to lugnet.robotics.rcx.nqc)
 
  Re: Scout poweroff time out?
 
(...) 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)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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