evil-mad / EggBot

Software for The Original EggBot
GNU General Public License v3.0
288 stars 140 forks source link

EBB Firmware: Add new 'TD' command to schedule back to back T3 commands. #223

Closed EmbeddedMan closed 7 months ago

EmbeddedMan commented 7 months ago

The idea here is to create a new command called 'TD' which will take

TD,Intervals,Rate1A,Rate1B,Accel1,Jerk1,Rate2A,Rate2B,Accel2,Jerk2[,Clear]

and create two T3 commands out of it which will then get scheduled into the FIFO as so:

T3,Intervals,Rate1A,0,Jerk1,Rate2A,0,Jerk2[,Clear] T3,Intervals,Rate1B,Accel1,-Jerk1,Rate2B,Accel2,-Jerk2

This allows the PC to send off a single command which will create an S-curve profile move. Because it's only one command from the PC, there will be a shorter minimum viable command length than the sum of the two T3 commands. Likely the TD command will be able to run continuously at a minimum duration of 4ms - this will be tested.

EmbeddedMan commented 7 months ago

This command was added in the v3.0.1 release.