I implemented automatic SG for 99% success rate. And whatever the wall height.
Here's a concept on how I'd implement, you'll need to do some change by yourself.
Hope someone improve this.
bool startSg = false;
float m_traversalStartTime = RPM<float>(ProcessId, LocalPlayerAddr + 0x2b50)...