double lat = static_cast<double>(gps_raw_int.lat / 1E7);
OR
float lat = static_cast<float>(gps_raw_int.lat / 1E7);
That will convert the number fro int32 to double, or you can make it float (but you lose precision* unless the original was a float of course)
Bill.
> --
> Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "MAVLink" sind.
> Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an mavlink+u...@googlegroups.com.
> Weitere Optionen: https://groups.google.com/d/optout