To save any confusion, I've drawn a schematic diagram of my circuit showing how the components should be connected:
I have shown an adjustable Potentiometer instead of another trim pot so that you can easily adjust the maximum speed whilst riding and set it exactly where you want it.
This could be replaced with a second trim pot if required, or if a two way switch is used, it could even be used in addition to it.
This would give you the option of switching between a pre-set legal maximum speed setting and a user adjustable maximum speed which could be adjusted anywhere between "snail mode" and unrestricted.
I especially like the idea of being able to easily reduce the maximum speed whilst riding, as it would be handy for matching my dog's speed which usually decreases as the walk/ride goes on!
It can also be used to give non ebike riders a chance of keeping up with you!
A two way switch could also be used to switch between two pre-set trim pots, which would be required if you use two different voltage battery packs.
This circuit has been tested on my Magic Pie and works fine, but I see no reason why it shouldn't also work with the separate cruise controllers which are based on a similar design.
Alan