{"action":"created","issue":{"url":"https://api.github.com/repos/PX4/Flow/issues/101","repository_url":"https://api.github.com/repos/PX4/Flow","labels_url":"https://api.github.com/repos/PX4/Flow/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/PX4/Flow/issues/101/comments","events_url":"https://api.github.com/repos/PX4/Flow/issues/101/events","html_url":"https://github.com/PX4/Flow/issues/101","id":355032366,"node_id":"MDU6SXNzdWUzNTUwMzIzNjY=","number":101,"title":"PX4FLOW publishing zeros to DISTANCE_SENSOR.current_distance","user":{"login":"rr2-ip","id":40975580,"node_id":"MDQ6VXNlcjQwOTc1NTgw","avatar_url":"https://avatars2.githubusercontent.com/u/40975580?v=4","gravatar_id":"","url":"https://api.github.com/users/rr2-ip","html_url":"https://github.com/rr2-ip","followers_url":"https://api.github.com/users/rr2-ip/followers","following_url":"https://api.github.com/users/rr2-ip/following{/other_user}","gists_url":"https://api.github.com/users/rr2-ip/gists{/gist_id}","starred_url":"https://api.github.com/users/rr2-ip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rr2-ip/subscriptions","organizations_url":"https://api.github.com/users/rr2-ip/orgs","repos_url":"https://api.github.com/users/rr2-ip/repos","events_url":"https://api.github.com/users/rr2-ip/events{/privacy}","received_events_url":"https://api.github.com/users/rr2-ip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-08-29T07:28:30Z","updated_at":"2018-08-30T09:15:20Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI am trying to get PX4FLOW working on my Intel Aero RTF Drone, using the PX4FLOW board and a LeddarOne rangefinder. I have the LeddarOne **and** the PX4FLOW board plugged into the Telemetry port of the drone. I do not have an ultrasonic module attached to the PX4FLOW board.\r\nThe telemetry port has 6 pins - VCC, GND, TX, RX, SCL, SDA. I'm using the TX and RX pins for the rangefinder, and the SCL, SDA pins for the PX4FLOW. I know this is possible as seen here: https://github.com/intel-aero/meta-intel-aero/issues/315\r\n\r\n\r\n\r\nMy issue is that both devices are publishing distance data to DISTANCE_SENSOR.current_distance. The PX4FLOW only publishes zero values, which means that the accurate rangefinder readings are interwoven with zeros. Please see the attached picture for an idea of what I mean. \r\n![distance sensor zeros](https://user-images.githubusercontent.com/40975580/44771947-dcfd1480-abaf-11e8-901b-c76de14b8e9a.jpg)\r\n\r\nThe PX4FLOW publishes DISTANCE_SENSOR data **even when there are no other sensors enabled or attached to the drone**.\r\n\r\nHow can I stop the PX4FLOW publishing DISTANCE_SENSOR data, but still publish OPTICAL_FLOW_RAD data?\r\n\r\nThanks in advance\r\n"},"comment":{"url":"https://api.github.com/repos/PX4/Flow/issues/comments/417249409","html_url":"https://github.com/PX4/Flow/issues/101#issuecomment-417249409","issue_url":"https://api.github.com/repos/PX4/Flow/issues/101","id":417249409,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzI0OTQwOQ==","user":{"login":"rr2-ip","id":40975580,"node_id":"MDQ6VXNlcjQwOTc1NTgw","avatar_url":"https://avatars2.githubusercontent.com/u/40975580?v=4","gravatar_id":"","url":"https://api.github.com/users/rr2-ip","html_url":"https://github.com/rr2-ip","followers_url":"https://api.github.com/users/rr2-ip/followers","following_url":"https://api.github.com/users/rr2-ip/following{/other_user}","gists_url":"https://api.github.com/users/rr2-ip/gists{/gist_id}","starred_url":"https://api.github.com/users/rr2-ip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rr2-ip/subscriptions","organizations_url":"https://api.github.com/users/rr2-ip/orgs","repos_url":"https://api.github.com/users/rr2-ip/repos","events_url":"https://api.github.com/users/rr2-ip/events{/privacy}","received_events_url":"https://api.github.com/users/rr2-ip/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T09:15:20Z","updated_at":"2018-08-30T09:15:20Z","author_association":"NONE","body":"I've done it a few times but I don't know some of the intricacies of building custom firmware. The first time I did it after forking, the px4flow driver was visible and working... strange. I'll be sure to take special note of the nuttx.cmake file from here on out.\r\n\r\nPX4FLOW is still somehow publishing zeros to DISTANCE_SENSOR, even after commenting out the code you suggested. I have even tried disabling and unplugging all other sensors and I still get DISTANCE_SENSOR returning zeros at approx 10Hz."}}
{"actor":{"display_login":"rr2-ip"}}