NXC SMUX LIGHTSENSOR VALUES

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.

NXC SMUX LIGHTSENSOR VALUES

Postby martin1990 » 21 Jan 2013, 19:01

Hello,
my problem is that my lightsensor only measures values from about 10 to 30 when im using him through the sensormultiplexer.Do someone know if i can change that so that the values are more or less between 0 and 100? Can i programm that somehow with bricx???
Here is the programm if it helps
Code: Select all
#include"HTSMUX-driver.h"
int lightvalue;
task main() {
SetSensorLowspeed(S1);



while(true)
{

lightvalue = smuxSensorLegoLightNorm(msensor_S1_1);
NumOut(0, LCD_LINE2, lightvalue);

    }    }
martin1990
 
Posts: 1
Joined: 21 Jan 2013, 18:53

Return to Mindstorms Software

Who is online

Users browsing this forum: No registered users and 9 guests

cron