To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 1245
  SPIRIT SetSensorMode "slope" parameter
 
Hi all- I've been writing an article about programming the RCX using Delphi and the SPIRIT OCX, to appear in MicroComputer Journal Magazine in my Delphi in the Laboratory series. I've written an example program, to be published with source code, (...) (26 years ago, 9-Dec-98, to lugnet.robotics)
 
  Re: SPIRIT SetSensorMode "slope" parameter
 
I'm sure that the best persons to decode the use of that function are the guys that disassembled the firmware... Laurentino Martins (...) (26 years ago, 9-Dec-98, to lugnet.robotics)
 
  Re: SPIRIT SetSensorMode "slope" parameter
 
(...) Well, I don't have my RCX yet, but I'd hazard a guess that the slope parameter sets a hysteresis for the boolean. So: instead of the boolean value changing every time it passes the halfway point, it needs to actually be (slope) away from the (...) (26 years ago, 9-Dec-98, to lugnet.robotics)
 
  Re: SPIRIT SetSensorMode "slope" parameter
 
(...) It sounds like you understand the general idea of how the slope parameter works, although I don't think that a slope of 10 implies that the transition happens when the raw value changes by 10. For slopes in 1..31, I believe the raw value (...) (26 years ago, 9-Dec-98, to lugnet.robotics)
 
  Re: SPIRIT SetSensorMode "slope" parameter
 
(...) This is buried in the ROM, not the firmware. In particular, it is buried in 14c0, byte read_sensor (short code, sensorstruct *sensor). I didn't bother to decode this function in detail since most of its functionality can be inferred from the (...) (26 years ago, 9-Dec-98, to lugnet.robotics)
 
  Re: SPIRIT SetSensorMode "slope" parameter
 
(...) the (...) I'm (...) this (...) 1=(RAW<45%of1023), (...) My understanding of "slope" is that it is the approximation of derivative of the function "raw value"= f(t), i.e. it is the value for df/dt. This means that if you set the slope to 10, (...) (26 years ago, 9-Dec-98, to lugnet.robotics)

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