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 @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
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13, 2022
More…