To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 1761
1760  |  1762
Subject: 
Spybotics To RCX Comm
Newsgroups: 
lugnet.robotics.spybotics, lugnet.robotics.rcx
Date: 
Sat, 17 Aug 2002 18:22:58 GMT
Viewed: 
1223 times
  
Hi Agents,

Just in case this hasn't been mentioned before, it is possible to
send an RCX message from a Spybot to an RCX. I cobbled
together the following MindScript programs and downloaded them
using ScriptEd.  Basicly, if you press the spybot "bumper" button,
it'll activate a motor on port A of the RCX.  Nothing exciting,
but it does demonstrate that sensor info from the Spybot
can make its way over to the RCX.

BTW, I think it's pretty cool that I was able to run two
simultaneous copies of ScriptEd (one for the Spybot, one
for the RCX) after setting up the DIY SDK mentioned in
this thread:

http://news.lugnet.com/robotics/?n=18449

Mark

program SpybotSender
  {
  #include "spybot.h"
  #include "globals.h"
  main
    {
    // Do something fun with the leds & speaker
    Disp(ledSparkle)
    sound sndHitByLaser

    forever
      {
      if bumper is closed
        { SendRCXMessage(1) }
      else
        { SendRCXMessage(2) }

      wait 10
      }
    }
  }

program RCXReceiver
  {
  #include"rcx2.h"
  main
    {
    forever
      {
      select message
         {
         when 1 { on A clear message }
         when 2 { off A clear message }
         }

      wait 5
      }
    }
  }



Message has 1 Reply:
  Re: Spybotics To RCX Comm
 
(...) MindScript syntax highlighting, improved error reporting (over that provided by ScriptEd) and Spybot support (one talking to the RCX via the USB tower and the other talking to the Spybot via COM1) is even cooler. :-) In case anyone else would (...) (22 years ago, 19-Aug-02, to lugnet.robotics.spybotics, lugnet.robotics.rcx)

2 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