I'm an undergraduate student in Electronics and Electrical Engineering but am more interested in research in computer science and have decent research experience. I have done a summer internship at a very reputed place in France and our work during the summer was published and we also won Distinguished artefact award at the conference. I'm now writing my thesis at a prominent computer science research institute in Germany with a senior researcher and now am thinking about pursuing PhD. But I don't exactly have good grades and people have suggested to go for a masters to improve my academics but I feel like its the same issue there as well, isn't it the same case for masters? I need good grades to get accepted for a decent masters program so I don't see how it helps me.
I would really appreciate the community's help and advice on how best to proceed for this.