apc220 with mp

All i am using the apc220 telemtry with apm but i am getting errors for example when trying to wire a mission i get system exception on read. Basicly reading stuff out of my arducopter with apc220 goes great but whenever i want to write (upload) it gives errors. Any ideas on how to fix this?

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

Join diydrones

Email me when people reply –

Replies

  • Moderator

    Last night I attempted to give my APCs a little more breathing room to increase the reliability of configuration and telemetry actions. I have added a counter to gcs_send_message(MSG_RETRY_DEFERRED); in the main loop and it certainly helps with the consistency that parameters are both pulled and modified. See below for the modification. This is a first attempt at this type of delay mod., as my other attempts have been to simply eliminate some of the Mavlink data being sent. This should keep us fully functional.


    In ArduCopter.pde

    First, declare a new int. variable up in the declarations section. I chose   int DEFERRED_COUNT = 0; .


    Then locate gcs_send_message(MSG_RETRY_DEFERRED); and encapsulate it as follows:

    // Main loop
    static void fast_loop()
    {
        // try to send any deferred messages if the serial port now has
        // some space available (every 10 main loop cycles. we will experiment with this value)
        
        if (DEFERRED_COUNT > 10){
        gcs_send_message(MSG_RETRY_DEFERRED);
        DEFERRED_COUNT = 0;}

        // increment the counter
        DEFERRED_COUNT = DEFERRED_COUNT + 1;

    Now I can use the Connect button every time instead of using Ctrl+T to first initiate the connection. I can also modify parameters without fail. Can you guys see if this improves your situation as well?

  • Same thing over here. I only can send write commands reliable via APC220 if no other data is being transmitted via this channel. It seems to be that 19200 bd is simply not enough for transmitting telemetry data as well as updating the configuration ...
  • i have used APC220 with APM2.24. it does writes once in a while and does not most of the times. will find a wayout whay it does so and will put a post.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @knightsautoteam: Hi @diyrobocars, we are Orlando's first Autonomous racing club and would love your support. We are hosting our first K…
Friday
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #14 - #ParkingLotNerds join us January 15th for #AutonomousRacing #RoboRace ⁦@DAVGtec…
Jan 16
DIY Robocars via Twitter
RT @chr1sa: And after that came our races, 50 in all. This battle between these two Russians was the best we've ever seen -- incredible fig…
Jan 16
DIY Robocars via Twitter
RT @chr1sa: Before our @DIYRobocars virtual race this weekend, we had a presentation from the team that won the Indy Autonomous Challenge i…
Jan 16
DIY Drones via Twitter
Dec 12, 2021
DIY Robocars via Twitter
Dec 12, 2021
DIY Robocars via Twitter
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
Dec 4, 2021
DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Nov 28, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25, 2021
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23, 2021
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23, 2021
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23, 2021
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20, 2021
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20, 2021
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9, 2021
More…