comp.lang.ada
 help / color / mirror / Atom feed
* GNAT NXT - Light Sensor and Motors
@ 2012-07-17 19:47 sergey.p.k
  2013-01-23 11:10 ` landowskitomasz
  0 siblings, 1 reply; 2+ messages in thread
From: sergey.p.k @ 2012-07-17 19:47 UTC (permalink / raw)


Hi,

I'm playing with GNAT for Mindstorms, trying to program a basic line follower. My problem is I'm always getting a reading of 100 (percent) for the light sensor, regardless of any calibration attempts, and Enable_Floodlight(True); does not turn the light on.

Can it be because the NXT.Light_Sensors package only supports the NXT 1.0 light sensor, not the NXT 2.0 color sensor which I have?

Also, setting the motor power doesn't seem to work (I'm using NXT.Motors.Simple). Another version incompatibility?

Thanks
Sergej



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-23 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-17 19:47 GNAT NXT - Light Sensor and Motors sergey.p.k
2013-01-23 11:10 ` landowskitomasz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox