Idk what kind of floor you have, but my floor is a somewhat slick, engineered hardwood. The default rubber feet on the pedals might as well have not been there.
It wasn’t until I got my honeycomb yoke that I knew such a thing as “micro suction” material even existed. There is a tape version available on Amazon that has the same properties as the micro suction mounting pad that honeycomb uses.
One side has actual adhesive on it (stick this side to the bottom of your pedals) the other side is the micro suction side. It feels sticky, but it’s not. Is actually the “microscopic suction pads”, if you will, they make it “sticky”
Has worked great so far for my pedals. Comes up off the floor with a little effort and doesn’t leave a residue.
Prior to that, I was using “under rug tape” which is a fairly sticky, but again, no -residue leaving tape that is meant for keeping rugs in place on slippery tile or hardwood floors.
Hope that helps!
Edit: I just noticed you said carpet. If you don’t care that it might pull up some fibers when you remove the tape, and you want the pedals to be semi permanent, I would go for the carpet tape.
Something like this would probably hold the pedals in place on carpet pretty well.
XFasten Double Sided Carpet Tape for Area Rugs, Residue-Free, 2-Inch x 30 Yards; Wood Super Strong and Heavy-Duty Rug Tape for Carpet to Floor and Rug to Carpet Applications https://www.amazon.com/dp/B0141L81GS/ref=cm_sw_r_cp_api_glt_fabc_FGH63KRKRJJKG2H5T9FM?_encoding=UTF8&psc=1
If you were crazy, you could even glue a couple strips of carpet tack strip to the bottom of the pedals (nail side down). That would surely stop then from moving around too much!
Roberts Tack Strip, 7/8 Inx4 ft, Wood/Concrete, Pk3 https://www.amazon.com/dp/B007P20K9C/ref=cm_sw_r_cp_api_glt_fabc_9JR769J6SHWHHCPR0NE6