-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
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
Bugs for DISCO #84
base: indigo-devel
Are you sure you want to change the base?
Bugs for DISCO #84
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -536,7 +536,8 @@ void BebopDriverNodelet::AuxThread() | |
if (bebop_ptr_->ardrone3_pilotingstate_positionchanged_ptr) | ||
{ | ||
gps_state_ptr = bebop_ptr_->ardrone3_pilotingstate_positionchanged_ptr->GetDataCstPtr(); | ||
if ((gps_state_ptr->header.stamp - last_gps_time).toSec() > util::eps) | ||
//if ((gps_state_ptr->header.stamp - last_gps_time).toSec() > util::eps) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for my delayed feedback and thanks for making all the changes. I will merge it in very soon. Please also remove this commented line. Also, please consider adding your name to the following file as part of this pull request: https://github.com/AutonomyLab/bebop_autonomy/blob/indigo-devel/docs/contribute.rst |
||
if (gps_state_ptr && ((gps_state_ptr->header.stamp - last_gps_time).toSec() > util::eps)) | ||
{ | ||
last_gps_time = gps_state_ptr->header.stamp; | ||
new_gps_state = true; | ||
|
@@ -559,7 +560,7 @@ void BebopDriverNodelet::AuxThread() | |
speed_esd_ptr = bebop_ptr_->ardrone3_pilotingstate_speedchanged_ptr->GetDataCstPtr(); | ||
|
||
// conside new data only | ||
if ((speed_esd_ptr->header.stamp - last_speed_time).toSec() > util::eps) | ||
if (speed_esd_ptr && ((speed_esd_ptr->header.stamp - last_speed_time).toSec() > util::eps)) | ||
{ | ||
last_speed_time = speed_esd_ptr->header.stamp; | ||
new_speed_data = true; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please revert back this line? I understand that Bebop's URDF does not match Disco's, but that should be fixed in a more generalized way.