|
From: <tf...@us...> - 2008-03-28 22:28:36
|
Revision: 66
http://personalrobots.svn.sourceforge.net/personalrobots/?rev=66&view=rev
Author: tfoote
Date: 2008-03-28 15:28:42 -0700 (Fri, 28 Mar 2008)
Log Message:
-----------
cleaning up displays
Modified Paths:
--------------
pkg/trunk/IBPSBatteryInterface/src/IBPSBatteryInterface/monitorBatteries.py
pkg/trunk/IBPSBatteryInterface/src/IBPSBatteryInterface/watchBatteries.py
Modified: pkg/trunk/IBPSBatteryInterface/src/IBPSBatteryInterface/monitorBatteries.py
===================================================================
--- pkg/trunk/IBPSBatteryInterface/src/IBPSBatteryInterface/monitorBatteries.py 2008-03-28 22:18:45 UTC (rev 65)
+++ pkg/trunk/IBPSBatteryInterface/src/IBPSBatteryInterface/monitorBatteries.py 2008-03-28 22:28:42 UTC (rev 66)
@@ -362,7 +362,9 @@
increment = 1.0
if time.time() - last_time > increment:
last_time = last_time + increment
+ print "displaying to screen"
myPow.print_remaining()
+ print "updating param server"
myPow.updateParamServer(master)
if __name__ == '__main__':
Modified: pkg/trunk/IBPSBatteryInterface/src/IBPSBatteryInterface/watchBatteries.py
===================================================================
--- pkg/trunk/IBPSBatteryInterface/src/IBPSBatteryInterface/watchBatteries.py 2008-03-28 22:18:45 UTC (rev 65)
+++ pkg/trunk/IBPSBatteryInterface/src/IBPSBatteryInterface/watchBatteries.py 2008-03-28 22:28:42 UTC (rev 66)
@@ -82,17 +82,18 @@
print "Getting IBPS params from Parameter Server"
print "-------------------------------------------------------------------"
status_code, statusMessage, current = master.getParam('IBPS.current')
- print "Current"
+ print "Current (A into Battery)"
print current
status_code, statusMessage, voltage = master.getParam('IBPS.voltage')
- print "Voltage"
+ print "Voltage (V)"
print voltage
status_code, statusMessage, time_remaining = master.getParam('IBPS.time_remaining')
print "Time Remaining (minutes)"
print time_remaining
status_code, statusMessage, average_charge = master.getParam('IBPS.average_charge')
- print "Average Charge"
+ print "Average Charge (percentage)"
print average_charge
+
time.sleep(1.0)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|