~tes/goby/2.1-git

« back to all changes in this revision

Viewing changes to src/moos/frontseat/bluefin/bluefin.cpp

  • Committer: GitHub
  • Author(s): Toby Schneider
  • Date: 2017-06-06 17:21:21 UTC
  • mfrom: (656.1.1)
  • Revision ID: git-v1:266d3647326d3ab512c4ed4f613578d4ed570afb
Merge pull request #28 from GobySoft/2.1-clean-up-gps-surface-bluefin

Simply GPS surfacing on Bluefin vehicles

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        {
126
126
            case gpb::BluefinExtraCommands::UNKNOWN_COMMAND:
127
127
            case gpb::BluefinExtraCommands::DESIRED_COURSE:
128
 
                break;
129
 
                
130
 
            case gpb::BluefinExtraCommands::GPS_REQUEST:
131
 
                glog.is(DEBUG1) && glog << "Bluefin Extra Command: GPS Fix requested by backseat."
132
 
                                        << std::endl;
133
 
                break;
 
128
                break;                
134
129
 
135
130
            case gpb::BluefinExtraCommands::TRIM_ADJUST:
136
131
            {
219
214
        {
220
215
            glog.is(WARN) && glog << "Ignoring desired course information in this message, as an extra command was set. Only one command allowed per message." << std::endl;
221
216
        }
222
 
        else if(outstanding_requests_.count(gpb::BluefinExtraCommands::GPS_REQUEST) &&
223
 
                static_cast<int>(command.desired_course().depth()) == 0 &&
 
217
        else if(static_cast<int>(command.desired_course().depth()) == 0 &&
224
218
                static_cast<int>(command.desired_course().speed()) == 0)
225
219
        {
226
220
            type = gpb::BluefinExtraCommands::DESIRED_COURSE;   
266
260
        }
267
261
    }
268
262
 
269
 
    // we enforce a request outstanding for GPS, because we need to override course requests until this
270
 
    // GPS request is fulfilled
271
 
    if(!bf_config_.disable_ack()
272
 
       && (command.response_requested() || type == gpb::BluefinExtraCommands::GPS_REQUEST))
 
263
    if(!bf_config_.disable_ack() && command.response_requested())
273
264
    {
274
265
        if(outstanding_requests_.count(type))
275
266
        {