From: <jfa...@us...> - 2009-08-31 18:32:49
|
Revision: 23394 http://personalrobots.svn.sourceforge.net/personalrobots/?rev=23394&view=rev Author: jfaustwg Date: 2009-08-31 18:32:41 +0000 (Mon, 31 Aug 2009) Log Message: ----------- Change default return for get_top_level_state to be -1 (no data) Modified Paths: -------------- pkg/trunk/stacks/diagnostics/robot_monitor/src/robot_monitor/robot_monitor_panel.py Modified: pkg/trunk/stacks/diagnostics/robot_monitor/src/robot_monitor/robot_monitor_panel.py =================================================================== --- pkg/trunk/stacks/diagnostics/robot_monitor/src/robot_monitor/robot_monitor_panel.py 2009-08-31 18:22:20 UTC (rev 23393) +++ pkg/trunk/stacks/diagnostics/robot_monitor/src/robot_monitor/robot_monitor_panel.py 2009-08-31 18:32:41 UTC (rev 23394) @@ -431,9 +431,9 @@ break ##\brief Gets the "top level" state of the diagnostics, ie. the highest value of any of the root tree items - ##\return 0 = OK, 1 = Warning, 2 = Error + ##\return -1 = No diagnostics yet, 0 = OK, 1 = Warning, 2 = Error def get_top_level_state(self): - level = 0 + level = -1 id, cookie = self._tree_ctrl.GetFirstChild(self._root_id) while not rospy.is_shutdown(): item = self._tree_ctrl.GetPyData(id) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |