rosflight / rosflight_ros_pkgs

ROS packages for the ROSflight autopilot
http://rosflight.org/
BSD 3-Clause "New" or "Revised" License
86 stars 56 forks source link

157 update board interface #170

Closed iandareid closed 1 week ago

iandareid commented 1 week ago

The interface changes have been made. They assume that the sensors always have new data when queried. This hasn't caused strange behavior, and I believe that is how it was done before changing the interface. Just something that seems odd.

iandareid commented 1 week ago

@JMoore5353 @bsutherland333

I am curious as to your thoughts with the having the SENSOR_has_new_data() methods always returning true.

iandareid commented 1 week ago

There was a bug with the return true, so I adjusted it to match the imu_new_data which uses gazebo time. This can be easily switched to generic sim time when we finally disconnect gazebo.