Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
julienthevenoz committed Feb 29, 2024
1 parent d1bbb7b commit be2f933
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crazyflie_py/crazyflie_py/crazyflie.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,11 +705,11 @@ def status_topic_callback(self, msg):
"""Callback method updating 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,
# 'timestamp_nsec' : msg.header.stamp.nanosec, 'supervisor' : msg.supervisor_info,
# 'battery' : msg.battery_voltage, 'pm_state' : msg.pm_state, 'rssi' : msg.rssi,
# 'num_rx_broadcast':msg.num_rx_broadcast, 'num_tx_broadcast' : msg.num_tx_broadcast,
# 'num_rx_unicast':msg.num_rx_unicast, 'num_tx_unicast' : msg.num_tx_unicast}
self.status = {'id' : msg.header.frame_id, 'timestamp_sec': msg.header.stamp.sec,
'timestamp_nsec' : msg.header.stamp.nanosec, 'supervisor' : msg.supervisor_info,
'battery' : msg.battery_voltage, 'pm_state' : msg.pm_state, 'rssi' : msg.rssi,
'num_rx_broadcast':msg.num_rx_broadcast, 'num_tx_broadcast' : msg.num_tx_broadcast,
'num_rx_unicast':msg.num_rx_unicast, 'num_tx_unicast' : msg.num_tx_unicast}


def get_status(self):
Expand Down

0 comments on commit be2f933

Please sign in to comment.