{"action":"opened","issue":{"url":"https://api.github.com/repos/PX4/Firmware/issues/2001","labels_url":"https://api.github.com/repos/PX4/Firmware/issues/2001/labels{/name}","comments_url":"https://api.github.com/repos/PX4/Firmware/issues/2001/comments","events_url":"https://api.github.com/repos/PX4/Firmware/issues/2001/events","html_url":"https://github.com/PX4/Firmware/issues/2001","id":67418820,"number":2001,"title":"Px4Flow not running while not powered from USB.","user":{"login":"h46incon","id":1175516,"avatar_url":"https://avatars.githubusercontent.com/u/1175516?v=3","gravatar_id":"","url":"https://api.github.com/users/h46incon","html_url":"https://github.com/h46incon","followers_url":"https://api.github.com/users/h46incon/followers","following_url":"https://api.github.com/users/h46incon/following{/other_user}","gists_url":"https://api.github.com/users/h46incon/gists{/gist_id}","starred_url":"https://api.github.com/users/h46incon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h46incon/subscriptions","organizations_url":"https://api.github.com/users/h46incon/orgs","repos_url":"https://api.github.com/users/h46incon/repos","events_url":"https://api.github.com/users/h46incon/events{/privacy}","received_events_url":"https://api.github.com/users/h46incon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-09T18:06:50Z","updated_at":"2015-04-09T18:06:50Z","closed_at":null,"body":"If my pixhawk powered from USB, it can switch to POSCTL with px4flow indoor. And flow data will be shown in QGC. Then if I keep it power up, plug battery, unplug from USB, px4flow can still work fine.\r\n\r\nBut if pixhawk powered from battery when booting, the px4flow will not working. I have added some log, I found `local_position.xy_valid` and `local_eph_good` is alway false:\r\n```\r\n# commander.cpp\r\n# line 1444\r\ncheck_valid(local_position.timestamp, POSITION_TIMEOUT, local_position.xy_valid\r\n\t && local_eph_good, &(status.condition_local_position_valid), &status_changed);\r\n```\r\n It seems  that flow position estimator is not running. \r\n\r\nSo if it is a small bug, or it is just a test to run px4flow when powered from USB?\r\n\r\nBTW:  when will the script `/etc/init.d/rc.usb` execute in startup? I find some codes releated to px4flow:\r\n```\r\nmavlink stream -d /dev/ttyACM0 -s OPTICAL_FLOW_RAD -r 10\r\n...\r\nmavlink stream -d /dev/ttyACM0 -s LOCAL_POSITION_NED -r 30\r\n```"}}