diff --git a/libraries/AP_GPS/AP_GPS_HIL.cpp b/libraries/AP_GPS/AP_GPS_HIL.cpp index 5a3c5661b7..d55beca3f9 100644 --- a/libraries/AP_GPS/AP_GPS_HIL.cpp +++ b/libraries/AP_GPS/AP_GPS_HIL.cpp @@ -22,6 +22,7 @@ AP_GPS_HIL::AP_GPS_HIL(Stream *s) : GPS(s) // Public Methods ////////////////////////////////////////////////////////////// void AP_GPS_HIL::init(void) { + idleTimeout = 1200; } bool AP_GPS_HIL::read(void) diff --git a/libraries/AP_GPS/AP_GPS_IMU.cpp b/libraries/AP_GPS/AP_GPS_IMU.cpp index 3e3131b07f..84cf24d045 100644 --- a/libraries/AP_GPS/AP_GPS_IMU.cpp +++ b/libraries/AP_GPS/AP_GPS_IMU.cpp @@ -41,7 +41,8 @@ AP_GPS_IMU::AP_GPS_IMU(Stream *s) : GPS(s) void AP_GPS_IMU::init(void) { - // we expect the stream to already be open at the corret bitrate + // we expect the stream to already be open at the corret bitrate + idleTimeout = 1200; } // optimization : This code doesn't wait for data. It only proccess the data available.