From a high level, I am trying to combine my Pixhawk telemetry data (specifically GPS position and vehicle attitude) with other sensor data on my RaspPi 2, that is connected via DroneKit. I have the Pixhawk connected via the GPIO header, at a 115200 baud rate on the Telem 1 port.
-I turned up the SR_1 telemetry rates to 10hz. -Running my logging code at 10hz, but have verified similar results at higher rates. -I am using the 'attributes' function, i.e.
curr_attitude = vehicle.attitude
The first problem is that I am only seeing updates come through at ~3-4 hz. Is there a reason for the discrepancy between the SR_1* rates and my vehicles attributes?
My seconds question: Is there a better/faster way to get the raw attitude and position information?