Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KmakD committed Apr 24, 2023
1 parent 9e83621 commit c98b388
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions panther_driver/src/driver_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
from std_msgs.msg import Bool
from std_srvs.srv import Trigger, TriggerRequest, TriggerResponse

from panther_msgs.msg import DriverState, FaultFlag, ScriptFlag, RuntimeError, IOState

from panther_msgs.msg import DriverState, FaultFlag, IOState, RuntimeError, ScriptFlag
from panther_can import PantherCANSDO, PantherCANPDO
from panther_kinematics import PantherDifferential, PantherMecanum

Expand Down Expand Up @@ -363,7 +362,7 @@ def _safety_timer_cb(self, *args) -> None:
self._motor_off_last_time = rospy.Time.now()
else:
# wait for motor drivers to power on before logging an error
if rospy.Time.now() - self._motor_off_last_time < rospy.Duration(2.0) :
if rospy.Time.now() - self._motor_off_last_time < rospy.Duration(2.0):
return
rospy.logerr_throttle(
10.0,
Expand Down

0 comments on commit c98b388

Please sign in to comment.