Sensor Feedback Code

Quadcopter specifications:
DJI F450
APM 2.6 (MPU 6000)
Raspberry Pi 2
MB1000 LV-MaxSonar-EZ0 Ultrasonic Sensor

I am building a quadcopter using Sliding Mode Control. I have attached the C Code used for the flight. At the moment I would like to check the sensor output. Does anyone has any idea as to how to get a code which will give me accurate sensor output?

main.c (40.8 KB)

Hi,
This is an Arduino forum, if you need to know about Rasp Pi then you will get a better response on a Pi forum.

Tom.. :slight_smile: