Closed NotInControl closed 6 years ago
Although the fix last night fixed discontinuites, it does not work with values that involve accelerating above max velocity(basically distances that are below 1) . Is there a fix for this @NotInControl ?
What are the vmax, amax, and jmax numbers?
If you make amax larger then vmax that should work but you need to also increase jmax to give amax room. Jmax is jerk which is the derivative of acceleration. So you can't increase amax and keep jmax small.
Get Outlook for Androidhttps://aka.ms/ghei36
From: davidm2556 notifications@github.com Sent: Tuesday, February 27, 2018 8:41:03 AM To: Team2168/2018_Main_Robot Cc: Kevin; Mention Subject: Re: [Team2168/2018_Main_Robot] found error in matlab code (#30)
Although the fix last night fixed discontinuites, it does not work with values that involve accelerating above max velocity. Is there a fix for this @NotInControlhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotincontrol&data=02%7C01%7C%7Cd6d08baeb00345fbba8508d57de7bf8c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636553356652507403&sdata=9Rhsff1AQbh6cK%2BB4XMp3hm%2BvspmYFwyBNqRFEOJtIw%3D&reserved=0 ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTeam2168%2F2018_Main_Robot%2Fissues%2F30%23issuecomment-368878272&data=02%7C01%7C%7Cd6d08baeb00345fbba8508d57de7bf8c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636553356652507403&sdata=boB0RtYcio26K5lCqJDUWZYCYJtz2DkyJpTvEvGl7KA%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABO1tzIWeZThwOEPmHtcRj0oHRZ7lCbCks5tZAXvgaJpZM4SSwX0&data=02%7C01%7C%7Cd6d08baeb00345fbba8508d57de7bf8c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636553356652507403&sdata=hf1M%2F7QZ8OZ0V1Nh8kgHtN0AN5TxYZbDwSqInkTCdZE%3D&reserved=0.
So aMax and jMax have to change in reference to the distance? The issue im referring to was pointed out by @AidanSullivan03, but maybe it more so dependent on values instead of the algorithm
No in relation to each other. The algorithm works when Amax/jmax is a ratio greater rhan some number.... if that relationship is not true which is usually not possible in practice, a path cant be generated. Increase jmax and rerun your test, the path where amax is greater than vmax should work
Get Outlook for Androidhttps://aka.ms/ghei36
From: davidm2556 notifications@github.com Sent: Tuesday, February 27, 2018 10:38:41 AM To: Team2168/2018_Main_Robot Cc: Kevin; Mention Subject: Re: [Team2168/2018_Main_Robot] found error in matlab code (#30)
So aMax and jMax have to change in reference to the distance?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTeam2168%2F2018_Main_Robot%2Fissues%2F30%23issuecomment-368920084&data=02%7C01%7C%7C0651dfedabdd4009127708d57df82e78%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636553427232679475&sdata=mx7bVS0e14Zc8e%2Fh5brric%2F5K109ov7SbrzmCB%2BvI1U%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABO1t1Y1lP4uMDrJzoJWyDoxx-bK60RHks5tZCF_gaJpZM4SSwX0&data=02%7C01%7C%7C0651dfedabdd4009127708d57df82e78%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636553427232679475&sdata=svGznC1qvA48nzo1lsaIYQrxpxxOkO0gwNAuIJeBcTQ%3D&reserved=0.
@AidanSullivan03 I found an error in the original matlab code and fixed it. The new code is below:
the errors were before the for loop so make sure all of the code from the start of the s-curve function to the start of the for loop matches the below. I pasted the entire code for reference. Should fix your discontinuities and the weird stuff being plotted
``
``