
Vesc disconects from pc during motor detection
please help

please help
Now heres the problem, the key ignition that im using, is when you turn the key(to on state)
the 2 wires connect
and on the vesc side there is a swich port that if you connect to gnd it turns the vesc off if you disconect it from ground, it turns the vesc on.
now if i connect the key ignition, when i turn the key the vesc turns off(
Yo guys i lowkey need some money, so I'm hosting a game idk how it's called but like if you send me 1 buck you get 1 entry, if this post gets like 100 upvotes I will open the entrys and after we have like 100 bucks I spin a wheel 3 times, first 2 get 60%(30+30) of the entrys, and third gets 20% then I take 10%.
If this post gets like 100 upvotes I will update with the tutorial how to enter
i want a speed limit switch/police switch (not my phone)
I have theese questions:
Is what im trying to do possible? (speed limit switch for 250w, 25 km/h pedal assist and 6km/h throttle)
Can i use Pedal sensor with vesc?
Can i make so pedal assist and throttle have different max speed?
Im currently in netherlands and Ebike ruels are very harsh here, max speed must be less then 25kmph and the motor has to be 250w. I was wondering if i can program a vesc, so if i hit a hidden switch the maximum speed is set to 25 and max power is set to 250w?