byu-magicc / rosplane

A basic fixed-wing autopilot for ROS - based on the textbook "Small Unmanned Aircraft: Theory and Practice" by Randy Beard and Tim McLain
98 stars 47 forks source link

Delta race condition fix #62

Closed erconui closed 6 years ago

erconui commented 6 years ago

The forces and moments file didn't have delta.t, delta.e, delta.a, delta.r initialized. This caused fatal errors if the command callback wasn't called before UpdateForcesAndMoments executed. The fix is to initialize those values to 0 in the load function.