Hi Jacob,
Apologies for the late reply.
Thank you for the recommendation but we’re actually trying to come up with a different type of altitude sensor that involves image processing instead of acoustics.
I’ve actually written the I2C driver already, built and uploaded the firmware. Unfortunately, I’m having troubles with it so I decided to take a step back and start from the beginning again:
I checked out Sub-3.6 from GitHub as instructed here, built and uploaded it to Pixhawk. Then connected the sensor to the I2C bus and ran the code that will send data (RasPi). Once it sends data to I2C, QGC gets disconnected and hangs. Now, what is odd here is that when I try to upload ArduSub 3.5.4, the stable version, and send the same data through I2C, it just conflicts with the other data. QGC doesn’t hang or gets disconnected. Any clues on why this is?
By the way, I also tried building Sub-3.5 just to check if the issue can be replicated, but couldn’t build it. Keep receiving this error:
waf-light: error: option --board: invalid choice: ‘Pixhawk1’ (choose from ‘aero’, ‘aerofc-v1’, ‘bbbmini’, ‘bebop’, ‘bhat’, ‘blue’, ‘dark’, ‘disco’, ‘erleboard’, ‘erlebrain2’, ‘linux’, ‘minlure’, ‘navio’, ‘navio2’, ‘px4-v1’, ‘px4-v2’, ‘px4-v3’, ‘px4-v4’, ‘pxf’, ‘pxfmini’, ‘raspilot’, ‘sitl’, ‘urus’, ‘zynq’)
Ok, also tried with Sub-4.0. It doesn’t disconnects and QGC doesn’t hang. Something might be up with Sub-3.6.