| | compiling
|
|
I am new to this message board so I am sorry if this topic has already been covered. I have been tring to make, but have been unsuccessful. The OS that I am currently trying to use is legOS 2.3. I keep recieving the error message: h8300-hms-gcc.exe: (...) (24 years ago, 6-Jul-00, to lugnet.robotics.rcx.legos)
|
|
| | Re: legOS battery life code
|
|
Sorry! I forgot to post the code. Here it is: #include <dsensor.h> #include <dlcd.h> #include <conio.h> int get_battery_mv() { long b; int mv; b = BATTERY; b = ds_scale(b) * 0xABD4L; mv = b / 0x618L; return mv; } int main(int ac, char **av) { int b; (...) (24 years ago, 5-Jul-00, to lugnet.robotics.rcx.legos)
|
|
| | legOS battery life code
|
|
Hello, I recently received some code in the mail that when compiled and uploaded to the RCX is supposed to give you the battery life. But when I go to compile it, legOS/util/makelx gives me the following error message: single byte different at (...) (24 years ago, 5-Jul-00, to lugnet.robotics.rcx.legos)
|
|
| | Re: rotation sensor problem, again...
|
|
I had the same problem and I solved it with a msleep(50). msleep(10) is not enough. (...) (24 years ago, 3-Jul-00, to lugnet.robotics.rcx.legos)
|
|
| | Re: battery life indicator
|
|
if((BATTERY/0x0016)<700) dlcd_show(LCD_BATTERY_X); I always put this line on my programs. BATTERY/0x0016 gives the value in V*100 of all batteries open circuit voltage. <700 is the limit for rotation sensors to work (all the other sensors have (...) (24 years ago, 3-Jul-00, to lugnet.robotics.rcx.legos)
|