Battery Low tutorial

This is where you talk about the RCX software itself, installation issues, and programming talk.

Moderator: roger

Battery Low tutorial

Postby Tray » Thu Mar 22, 2007 8:21 am

Hi All
I am just new to lejos and I am currently working through the tutorials,
when I compile the BatteryLow class I keep getting the following error.

BatteryLow java21 cannot resolve symbol
symbol method getBatteryPower()
location class josx.platform.rcx.ROM
float voltLevel = (ROM.getBatteryPower() * 10 /355);

Could any one please explain to me why this is happening and also how the battery voltage is calculated with the formula
(ROM.getBatteryPower() * 10 /355);

Thank
Tray
Tray
New User
 
Posts: 1
Joined: Thu Mar 22, 2007 8:05 am

Postby ruslanS » Sun Apr 13, 2008 11:38 pm

I ran into the same problem
Anybody help?
My version of ROM doesn't even have getBatteryPower() method, while in all tutorials it uses that method. I downloaded the latest version for RCX and ROM class has call () methods instead of getBatteryPower()
Lejos is thinking legos
ruslanS
New User
 
Posts: 1
Joined: Sun Apr 13, 2008 11:35 pm
Location: US, WA


Return to RCX Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff