@CrisPierry The PID that @Zach929Y is describing is actually what the VEX IQ motor did for you automatically when you selected “Hold”. “Hold” in your programming would tell the motor to hold the position it stopped at.
In VEX EDR, you have to program this yourself. There are plenty of documents that help you with that online and in these forums. There are definitely people in the VEX community that will help you with that.
@CrisPierry PID is a control algorithm that means Proportional Integral Derivative. As you search through the forum just start with the P portion of PID. It will be an easy start with decent, but not perfect, results.
Kev has a good point. This will work in a lot of cases depending on what you are trying to do. Sometimes its more effective to flip this around also. You can increase the tension of your life to the point where it can’t fold down all the way naturally (wants to spring up a lot) then use this logic but modify so:
The only caution is that sometimes it takes more than power of 10 to keep a mechanism up. Caution should be taken that the motor is not running too hard or too long or it could overheat. Learned that one the hard way!
I wouldn’t say setting motor power to a low value (or holding power) is the best way to go.
It is definitely easier to implement. But it will only work if the load is fixed (eg. Always the same weight).
If the load is always changing, then PID will work better.
You will need to know what are those situations that you will need to hold your lift, and then decide which approach is more appropriate.