Weird stuff with MTek and ArduCopter.

Has anybody seen this behavior before.  When the MediaTek MT3329 is hooked up I see some sort of noise in the read outs.  Several of the indicator jump at a specific intervals. I’m able to run both the NMEA and MTK Binary test code ok and reports back correct information.  There also seems to be a pause in the data stream when viewing the com port with serial monitor.  The two test GPS programs kick back a fairly constant stream.

 

Background history, I had troubles first using the MTek for testing ArduPilot Meaga in binary mode.  I needed to switch to it using the codes below found in link on the
store website.

 

Serial1.print("$PGCMD,16,0,0,0,0,0*6A\r\n");   // Custom binary protocol

Or

Serial1.print("$PGCMD,16,1,1,1,1,1*6B\r\n");  // NMEA

 

Configurations


MTek in Binary mode – Same result

MTek in NMEA mode – Same result
Unhook MTek – sensors stabilize 


ArduPilotMega

OilPAN


No other hardware connected


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

Join diydrones

Email me when people reply –

Replies

  • Commenting out the serial print gps latitude and longitude lines in arducopter.pde fixed the problem for me.

    In lines 678-680, change to this:
    // Serial.print(GPS.Lattitude);
    // Serial.print(",");
    // Serial.print(GPS.Longitude);


    Before I commented this out, instead of the configurator showing 1.2 in the upper left where it says Flight Software Version, it would show my GPS latitude. After commenting it out, it correctly shows 1.2 and there are no spikes in the sensor readings. I came upon this after looking at the code I had backed up from when I had everything working and going through all of the changes that had been made between the two. I am using the MT3329 GPS with the GPS_MTK library.
  • Starting with r53 of the arducopter code, if I include the GPS_MTK.h library in the arducopter.pde, I would get spikes in my accelerometer readings. It goes away if I use the GPS_NMEA.h. Before r53, I didn't have a problem with the GPS_MTK library...the GPS would get a lock and LED C would light up on the IMU to confirm
  • Jani,

    Thanks for the reply. I'm just a little overly enthusiastic with the project and the community. I love this stuff. I will hold tight until the official release. I might have to buy a second board so I bug the ArduPilot Megas guys also ;)

    Cheers
  • Update,

    Modified the cable going from the APM to the GPS adapter only discontenting the tx. Everything stabilized. I'm thinking I got my GPS in a unsupported or mode refresh rate ect... or the alpha software dose not understand the stream and is not decoding the signals from the GPS and AMP correctly (False positive). To further look into this using the APM_ADC_test with the following results. This is with the GPS tx hooked backup and is the only item hooked to the APM/OilPan no other RC equipment or sensors. If it matters its being powered VIA the mini usb connector on the OilPan.


    Hope this helps anybody else seeing the same issue.

    Cheers
  • Ken,

    Thank you for the reply, I will start tracking down that direction.
This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…