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.
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?
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?
Regards, Soren