Hi,

I'm trying to read sonar data in real time. I tried to modify the code (in GCS_Mavlink) so that the VFR_HUD mavlink message would send sonar_alt through the "alt" field, but when I upload the code, I can no longer connect to Mission Planner. When it tries to connect, it just counts down from 30 and times out. I will note that I only changed one line from the original code, meaning I don't see any way that my edit is responsible for this.

I would also like to know where the "alt" data comes from. What is it a measurement of? When I read the data, I get strange fluctuations for altitude. However, when I use Mission Planner and do test->sonar in the terminal, the readings seem fine.

In APM_Config.h, I had to disable some of the features to save space so that I wouldn't get a "sketch too big" error, so I'm not sure if that has anything to do with it.

Any help is very much appreciated.

Thanks,

Henry

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

Join diydrones

Email me when people reply –

Replies

  • Anyone?

    If you don't know the answer, please point me to some resources that may help. I've followed the instructions for uploading the code here, so I'm not sure what could be wrong.

This reply was deleted.

Activity