You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LordMicrostrainIMU's update method differs from IMUBase. update method is designed to return None, data_packets can be set as a class attribute that the user can access after update is called.
def update(self, timeout: int = 500, max_packets: int = 1, return_packets: bool = False) -> Optional[list[Any]]:
"""
Get IMU data from the Lord Microstrain IMU
"""
data_packets = self._node.getDataPackets(timeout=timeout, maxPackets=max_packets)
data_points = data_packets[-1].data()
self._data = {data.channelName(): data.as_float() for data in data_points}
if return_packets:
return data_packets
🐛 Bug Report
LordMicrostrainIMU's
update
method differs from IMUBase.update
method is designed to return None,data_packets
can be set as a class attribute that the user can access after update is called.Problem:
The text was updated successfully, but these errors were encountered: