Does anyone have experience with configuring their own sensors onto the Pixhawk (I have an IRIS)? I purchased a gas sensor that I'd like to wire to it, does anyone know of any good resources to help me get started? I've downloaded the PX4 development environment from the Pixhawk developers website and have gone through some of the "getting started" instructions on there, I have been able to install the firmware through Eclipse as opposed to the Mission Planner. I also purchased 3-position and 5-position connectors for the analog inputs.
I was also wondering if there is a way to view the telemetry log data on Mission Planner during flight? If I did add this sensor, would data be saved through the telemetry logs or dataflash logs?
I appreciate whatever help I can get, thank you!
This code should work fine on the APM - just use the appropriate ADC pin.
Thanks, we will give it a try.
Thanks, all done with the code modification.
What method of building the firmware did you use? Make or Microsoft visual basic?
reason I ask is because I am using make and it keeps giving me a variable error?
- Rai Gohalwar
Rai, I use make both from the command line and from Eclipse. What is the error you are getting?
It kept saying that a float was used in case of a char in id 157
Weird, never seen that before. By the way i was using the console to do it. How do you build it from the eclipse?
I will private message you my skype address
Hi Katie, I have flown with CO2, SO2, and H2S sensors on an APM. I hooked them up via I2C and then added a new dataflash 'GAS' log message and later also a mavlink message. Would be interested to hear more about your application, and happy to show you the code I used. It's in a local branch but if you remind me I'll push it to github. You can see the discussion I started here.
It would be great if someone who knows what they are doing could write a set of instructions (including a flow chart) to show how to read an additional ADC pin and send the data to Mavlink and to log the data.
Glad to see someone else who's accomplished configuring gas sensors to the APM. I have an H2S gas sensor (link here) that I need to configure to the Pixhawk. How did you test/calibrate the sensors? Definitely interested in hearing about your experiments.