Skip to content

Commit

Permalink
pep257 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
julienthevenoz committed Mar 15, 2024
1 parent 2672351 commit 1497879
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crazyflie_py/crazyflie_py/crazyflie.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,11 @@ def cmdPosition(self, pos, yaw=0.):
# self.setParam('ring/solidBlue', int(b * 255))

def status_topic_callback(self, msg):
"""Call back for topic /cfXXX/status.
"""
Call back for topic /cfXXX/status.
Update the status attribute every time a crazyflie_interfaces/msg/Status
message is published on the topic /cfXXX/status
"""
self.status = {'id': msg.header.frame_id,
'timestamp_sec': msg.header.stamp.sec,
Expand All @@ -722,7 +722,8 @@ def status_topic_callback(self, msg):
'num_tx_unicast': msg.num_tx_unicast}

def get_status(self):
"""Return the status attribute.
"""
Return the status attribute.
Status is a dictionary containing:
frame id, timestamp, supervisor info, battery voltage, pm state, rssi, nb of received or
Expand Down

0 comments on commit 1497879

Please sign in to comment.