Questions about S curve

for the last days I have been doing numerous missions with sitl, experimenting specifically trying to adjust the parameters to do better turns. After a quick search, I know the firmware now uses s curve for the missions and now I want to study to understand how it works. Could someone guide me towards the right files for S curve and also for the mission commands?

There are no specific Mission Commands, it’s the default method of navigation now.