How to fix & verify GPS refresh rate?

Hi there!

I am currently using the rainy days to setup my APM2.5. Now, I got a Mediatek MTK3329 GPS from flytron.com quite some while ago (used it with MultiWii via I2C at that time).
this GPS also provides serial interface and since I switched over from MultiWii to APM now, I would like to reuse this GPS.

I updated it with http://code.google.com/p/ardupilot/wiki/MediaTek version 1.6

next i set with the GPS Config Tool 1.7.1 the refresh-rate to 10Hz.
verifying that with a terminal program such as Putty confirms, that coordinates are getting updated now with 10 per second which looks great.
Also verified to disconnect GPS from power, reconnect again and still the refresh rate is 10Hz.

Then I connect the GPS to my APM2.5. I get fix even indoors with no problem.

I just want to make sure, it really uses the higher refresh rate of 10 Hz.

However, when connecting to the APM2.5 CLI the coordinates I get there seem to be updated much slower. I would estimate approx. 3 Hz or so.
When I connect the GPS again to the GPSConfigTool the refresh rate seems to be reset back to 5Hz...

Any idea, how I can get APM2.5 to use 10Hz refresh rate and how to verify that properly?

thanks a lot and best regards from vienna,
Christian

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 100KM

    The mediatek gps refresh rate is reset by the arduplane or arducopter code.  Look in the AP_GPS library, file AP_GPS-MTK16.cpp.  There you'll find the init function :

    void

    AP_GPS_MTK16::init(enum GPS_Engine_Setting nav_setting)
    {
    _port->flush();

    // initialize serial port for binary protocol use
    // XXX should assume binary, let GPS_AUTO handle dynamic config?
    _port->print(MTK_SET_BINARY);

    // set 5Hz update rate
    _port->print(MTK_OUTPUT_5HZ);

    // set SBAS on
    _port->print(SBAS_ON);

    // set WAAS on
    _port->print(WAAS_ON);

    // set initial epoch code
    _epoch = TIME_OF_DAY;
    _time_offset = 0;
    _offset_calculated = false;
    idleTimeout = 1200;
    }

    There is a reason for this however.  Tridge found that at 10hz the gps would sometimes loose sync, but this was not generally confirmed and I think someone else found no such problem.

    Just be carefull and watch for gps loss of sync when using it at 10hz.

This reply was deleted.

Activity

Chris Anderson liked Zara Mae Pickering's profile
May 21
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
More…