{"action":"created","issue":{"url":"https://api.github.com/repos/analogdevicesinc/iio-oscilloscope/issues/7","labels_url":"https://api.github.com/repos/analogdevicesinc/iio-oscilloscope/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/analogdevicesinc/iio-oscilloscope/issues/7/comments","events_url":"https://api.github.com/repos/analogdevicesinc/iio-oscilloscope/issues/7/events","html_url":"https://github.com/analogdevicesinc/iio-oscilloscope/issues/7","id":65845399,"number":7,"title":"allow 2 FFTs to be run, and displayed at the same time, and be able to measure phase difference on markers","user":{"login":"rgetz","id":1017869,"avatar_url":"https://avatars.githubusercontent.com/u/1017869?v=3","gravatar_id":"","url":"https://api.github.com/users/rgetz","html_url":"https://github.com/rgetz","followers_url":"https://api.github.com/users/rgetz/followers","following_url":"https://api.github.com/users/rgetz/following{/other_user}","gists_url":"https://api.github.com/users/rgetz/gists{/gist_id}","starred_url":"https://api.github.com/users/rgetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgetz/subscriptions","organizations_url":"https://api.github.com/users/rgetz/orgs","repos_url":"https://api.github.com/users/rgetz/repos","events_url":"https://api.github.com/users/rgetz/events{/privacy}","received_events_url":"https://api.github.com/users/rgetz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dNechita","id":3383080,"avatar_url":"https://avatars.githubusercontent.com/u/3383080?v=3","gravatar_id":"","url":"https://api.github.com/users/dNechita","html_url":"https://github.com/dNechita","followers_url":"https://api.github.com/users/dNechita/followers","following_url":"https://api.github.com/users/dNechita/following{/other_user}","gists_url":"https://api.github.com/users/dNechita/gists{/gist_id}","starred_url":"https://api.github.com/users/dNechita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dNechita/subscriptions","organizations_url":"https://api.github.com/users/dNechita/orgs","repos_url":"https://api.github.com/users/dNechita/repos","events_url":"https://api.github.com/users/dNechita/events{/privacy}","received_events_url":"https://api.github.com/users/dNechita/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2015-04-02T05:47:25Z","updated_at":"2015-04-05T17:59:57Z","closed_at":null,"body":"I was playing with the branch, and added something like this:\r\n\r\nindex 34e9372..4af5fc1 100644\r\n--- a/osc.h\r\n+++ b/osc.h\r\n@@ -49,6 +49,7 @@ struct marker_type {\r\n        int bin;\r\n        bool active;\r\n        char label[6];\r\n+       float angle;\r\n        GtkDataboxGraph *graph;\r\n };\r\n \r\ndiff --git a/oscplot.c b/oscplot.c\r\nindex b3fcf64..b7f00f8 100644\r\n--- a/oscplot.c\r\n+++ b/oscplot.c\r\n@@ -984,6 +984,13 @@ static void do_fft(Transform *tr)\r\n                                markers[j].y = (gfloat)out_data[markers[j].bin];\r\n \r\n                        }\r\n+                       if (fft->num_active_channels == 2) {\r\n+                               markers[j].angle = atan2(settings->imag_source[markers[j].bin],\r\n+                                               in_data[markers[j].bin]);\r\n+\r\n+                               //printf(\"%i: %f\\n\", j, markers[j].angle);\r\n+                       } else\r\n+                                markers[j].angle = 0;\r\n                }\r\n                if (*settings->markers_copy) {\r\n                        memcpy(*settings->markers_copy, settings->markers,\r\n\r\n\r\nThis seems to work (angle is set properly). However -- I'm not sure:\r\n - that markers are turned on for both ffts?\r\n - where I can get access to both marker data sets? the way transforms are done - is all a little puzzeling to me now.\r\n\r\nThanks\r\n-Robin"},"comment":{"url":"https://api.github.com/repos/analogdevicesinc/iio-oscilloscope/issues/comments/89821466","html_url":"https://github.com/analogdevicesinc/iio-oscilloscope/issues/7#issuecomment-89821466","issue_url":"https://api.github.com/repos/analogdevicesinc/iio-oscilloscope/issues/7","id":89821466,"user":{"login":"rgetz","id":1017869,"avatar_url":"https://avatars.githubusercontent.com/u/1017869?v=3","gravatar_id":"","url":"https://api.github.com/users/rgetz","html_url":"https://github.com/rgetz","followers_url":"https://api.github.com/users/rgetz/followers","following_url":"https://api.github.com/users/rgetz/following{/other_user}","gists_url":"https://api.github.com/users/rgetz/gists{/gist_id}","starred_url":"https://api.github.com/users/rgetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgetz/subscriptions","organizations_url":"https://api.github.com/users/rgetz/orgs","repos_url":"https://api.github.com/users/rgetz/repos","events_url":"https://api.github.com/users/rgetz/events{/privacy}","received_events_url":"https://api.github.com/users/rgetz/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T17:59:57Z","updated_at":"2015-04-05T17:59:57Z","body":"When I make sure that MCS is asserted -- I don't think I see the issue, so I think this is just an FMCOMMS5 issue.\r\n\r\nI need to tweak the math, as a little more playing in MATLAB, lead me to re-write the description, so we can provide an more accurate number all the time. (so that we have to do fewer iterations/corrections). I fixed the docs, and now just need to implement & commit things tonight.\r\n\r\n-Robin"}}