Test code

Hi

I am trying to turn the apm 2.0 into a logger but doesnt know quite where to start. I will try to log gps, compass,mpu,temperature and altitude as fast as possible and just dump it to the serial with the mavlink protocol. I would therefore like to get rid of all the other code and just keep these features.

Should i start with test.pde and somehow modify it or?

All help would be nice.

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

Join diydrones

Email me when people reply –

Replies

  • Thanks, im on to it. I am using a rpi to log the sensor from apm and then saved it to file and then transfer it to a server and then put it onto a database.

  • At the moment i only get 25, why not 50hz?

  • Any ideas how i can  modify the code to log faster?

  • I edited GCS_Mavlink file so that apm sends onto serial only the data I need.By simply breaking cases in mavlink_try_send_message:

    case MSG_LOCATION:
    break;
    CHECK_PAYLOAD_SIZE(GLOBAL_POSITION_INT);
    send_location(chan);
    break;

    IS it somehow possible to get it to log with 100Hz?

    Интернет-магазин Need.by ручного инструмента и строительных материалов
    Интернет-магазин стройматериалов и ручного инструмента в Минске и Беларуси Need.by - купить строительные материалы и ручной инструмент оптом, в розни…
  • I'm using mavproxy on linux to get the live data from apm. I'm using one of its options to set a higher stream rate. I've read that the max rate is 50Hz, however, I can't get more than 25Hz, no matter how big I set it.
    I edited GCS_Mavlink file so that apm sends onto serial only the data I need.
    Should I follow your previous post anyway to speed things up or is there something else which causes that I cannot reach 50Hz?

  • Start with eg. the ArduPlane directory and get ArduPlane to compile OK. Now delete, in the .pde files, everything you don't want. For example, with attitude and radio control you can delete entire pde files. Others you need to edit to remove eg. control mode. Leave the HAL and all .cpp as is. Work in small steps, getting code to compile again before next kill. And also check that the mavlink and measurement parts still are working.
    Regards, Soren
This reply was deleted.

Activity

Gremsy liked Gremsy's profile
Mar 12
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…