Skip to content

Set a custom size for the usable area #16

Answered by rdudhagra
SeanPluemer asked this question in Q&A
Discussion options

You must be logged in to vote

Is there any way that we would be able to input a custom size for the area?

You can set the rectangular bounds of the sand table's size in the .env file (as well as in the Marlin firmware, you must do both). However, I assume what you want here is for the website to "crop" the uploaded track to fit in the confines of your usable area. Currently, I'm cropping to a rectangular shape using a series of if statements; but it seems that your case would require something more complicated. You'd have to edit process_theta_rho.js, specifically the scale() function, to work with a more complex shape, perhaps a polyline defined by a series of points that roughly matches the usable area. Take a look at

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@SeanPluemer
Comment options

@rdudhagra
Comment options

@SeanPluemer
Comment options

Answer selected by rdudhagra
Comment options

You must be logged in to vote
1 reply
@rdudhagra
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants