We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Gremsy team,
I found an issue with thread locking:. gSDK Alpha: gimbal_interface.cpp
Gimbal_Interface::imu_t Gimbal_Interface::get_gimbal_raw_imu(void) { pthread_mutex_lock(&_messages.mutex); /* Check gimbal imu value has changed*/ if (_messages.timestamps.raw_imu) { /* Reset timestamps */ _messages.timestamps.raw_imu = 0; const mavlink_raw_imu_t &raw = _messages.raw_imu; pthread_mutex_unlock(&_messages.mutex); //this needs to be added! return imu_t(vector3<int16_t>(raw.xacc, raw.yacc, raw.zacc), vector3<int16_t>(raw.xgyro, raw.ygyro, raw.zgyro)); } pthread_mutex_unlock(&_messages.mutex); return imu_t(); }
see comment: pthread_mutex_unlock(&_messages.mutex); //this needs to be added! Otherwise the Thread stays in lock mode and crashes the application.
pthread_mutex_unlock(&_messages.mutex); //this needs to be added!
The text was updated successfully, but these errors were encountered:
Thank you, we have fixed this error in the newest version.
Sorry, something went wrong.
No branches or pull requests
Hi Gremsy team,
I found an issue with thread locking:.
gSDK Alpha:
gimbal_interface.cpp
see comment:
pthread_mutex_unlock(&_messages.mutex); //this needs to be added!
Otherwise the Thread stays in lock mode and crashes the application.
The text was updated successfully, but these errors were encountered: