I have been looking around the web a bit and keeping hitting a wall. I want to take the live data form the Pixhawk and output it to a Teensy 3.2.
I just want to have the AHRS and Coordinates sent to the Teensy, but I do not know where to begin. Has anyone done this or can you guide me to a starting point?
Okay so I got some things figured out. I spent a good bit just figuring out how to compile the MAVLink Arduino example code. Couldn’t figure out how to compile for the Teensy so I’m just gonna stick with the Arduino Mega for now.
Tomorrow I plan on hooking it up to the Pixhawk and reading the heartbeat message. What I haven’t figured out yet is how to read the info from the sensors. The link I posted from earlier is missing too much for comfort.
Right now I have the generic example code from ArduinoMAVLink. Where would I add something like:
I cannot compile with the mavlink header unless I use FastSerial. Additionally, I cannot compile on the most recent arduino IDE and I have to use 1.0.6.
How did you get around this? Do I have outdated MAVLink libraries?
You have no idea how long I looked around the web to get this thing to compile!! I got your code to compile for both the mega and Teensy. The Teensy had some warnings but I can find a way to get around that.
Now I’ll try to write it on my own and reference yours so i can learn more (:
Hopefully this is my last question for a while. When I use the physical hardware, should I connect the I2C from the Pixhawk to the I2C on the Teensy or Arduino?
I have another vehicle that navigates based on vision and I wanted to use the Pixhawk to give it outdoor navigation capabilities but I do not want the Pixhawk to be in charge so I have to feed all the info to the current computer on the vehicle so it can make decisions. If that all makes sense.
But nothing prints for those cases. Do you know why it’s not printing (why it’s not entering the case)? I have the vehicle in AUTO mode and I can get waypoint distance and bearing updates. I just can’t extract the waypoint location.