{"action":"created","issue":{"url":"https://api.github.com/repos/MatrixPilot/MatrixPilot/issues/160","repository_url":"https://api.github.com/repos/MatrixPilot/MatrixPilot","labels_url":"https://api.github.com/repos/MatrixPilot/MatrixPilot/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/MatrixPilot/MatrixPilot/issues/160/comments","events_url":"https://api.github.com/repos/MatrixPilot/MatrixPilot/issues/160/events","html_url":"https://github.com/MatrixPilot/MatrixPilot/pull/160","id":257091106,"number":160,"title":"Wait for PLL to lock, to avoid wrong data transfer on UART, in accord…","user":{"login":"Jeffem","id":13853106,"avatar_url":"https://avatars2.githubusercontent.com/u/13853106?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeffem","html_url":"https://github.com/Jeffem","followers_url":"https://api.github.com/users/Jeffem/followers","following_url":"https://api.github.com/users/Jeffem/following{/other_user}","gists_url":"https://api.github.com/users/Jeffem/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeffem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeffem/subscriptions","organizations_url":"https://api.github.com/users/Jeffem/orgs","repos_url":"https://api.github.com/users/Jeffem/repos","events_url":"https://api.github.com/users/Jeffem/events{/privacy}","received_events_url":"https://api.github.com/users/Jeffem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-09-12T15:41:22Z","updated_at":"2017-09-20T15:28:01Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/MatrixPilot/MatrixPilot/pulls/160","html_url":"https://github.com/MatrixPilot/MatrixPilot/pull/160","diff_url":"https://github.com/MatrixPilot/MatrixPilot/pull/160.diff","patch_url":"https://github.com/MatrixPilot/MatrixPilot/pull/160.patch"},"body":"…ance with Microchip recommandation, cf DS70188E-page 17-16."},"comment":{"url":"https://api.github.com/repos/MatrixPilot/MatrixPilot/issues/comments/330888473","html_url":"https://github.com/MatrixPilot/MatrixPilot/pull/160#issuecomment-330888473","issue_url":"https://api.github.com/repos/MatrixPilot/MatrixPilot/issues/160","id":330888473,"user":{"login":"Jeffem","id":13853106,"avatar_url":"https://avatars2.githubusercontent.com/u/13853106?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeffem","html_url":"https://github.com/Jeffem","followers_url":"https://api.github.com/users/Jeffem/followers","following_url":"https://api.github.com/users/Jeffem/following{/other_user}","gists_url":"https://api.github.com/users/Jeffem/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeffem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeffem/subscriptions","organizations_url":"https://api.github.com/users/Jeffem/orgs","repos_url":"https://api.github.com/users/Jeffem/repos","events_url":"https://api.github.com/users/Jeffem/events{/privacy}","received_events_url":"https://api.github.com/users/Jeffem/received_events","type":"User","site_admin":false},"created_at":"2017-09-20T15:28:01Z","updated_at":"2017-09-20T15:28:01Z","author_association":"NONE","body":"Hi Bill & Pete\r\nWhen I test hypothesis on that issue, I force the observation of this sending to visualize with a logic analyser, that telemetry messages are sent to the USART during the matrixpilot init,  meaning before setting the serial baud rate(s).\r\nIt is easy to raise this failure : \r\n1- just add a delay greater than 200 ms in MPU6000_init16() ;\r\n2- setup the udb_init_USART (as it is done for GPS uart) by calling mavlink_init at the beginning of main_init, without setting baud rate comment the line \r\n**//**\tudb_serial_set_rate(MAVLINK_BAUD);\r\n3 - Set baud rate at the end of the main_init.\r\n\r\nint matrixpilot_init(void)\r\n{\r\n\tgps_init();     // this sets function pointers so i'm calling it early for now\r\n\tudb_init();     // configure clocks and enables global interrupts\r\n\t**mavlink_init();**\r\n//\tfilesys_init(); // attempts to mount a file system\r\n\tconfig_init();  // reads .ini files otherwise initialises with defaults\r\n\tdcm_init();\r\n#if (FLIGHT_PLAN_TYPE == FP_WAYPOINTS)\r\n//\tinit_waypoints();\r\n#endif\r\n\tservoMix_init();\r\n\tservoPrepare_init();\r\n\tinit_states();\r\n\tinit_behavior();\r\n\t**udb_serial_set_rate(MAVLINK_BAUD);**\r\n\ttelemetry_init();\r\n\r\nThis operation shows that message try to be sent during the init phase, before its end, so before setting the baud rate.\r\nBest regards,\r\ngfm"}}
{"actor":{"display_login":"Jeffem"}}