Skip to content
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

Open
wants to merge 4 commits into
base: indigo-devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bebop_driver/src/bebop_driver_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Member

Choose a reason for hiding this comment

The 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;
Expand All @@ -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;
Expand Down