comp.lang.ada
 help / color / mirror / Atom feed
From: sergey.p.k@gmail.com
Subject: GNAT NXT - Light Sensor and Motors
Date: Tue, 17 Jul 2012 12:47:04 -0700 (PDT)
Date: 2012-07-17T12:47:04-07:00	[thread overview]
Message-ID: <0135562c-a0e5-4174-807f-772a8d3c9e25@googlegroups.com> (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



             reply	other threads:[~2012-07-24  3:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17 19:47 sergey.p.k [this message]
2013-01-23 11:10 ` GNAT NXT - Light Sensor and Motors landowskitomasz
replies disabled

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