User Tools

Site Tools


projects:sand_drawing:work_logs:even_mode_software

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
projects:sand_drawing:work_logs:even_mode_software [2020/05/15 06:24] – created tjhowseprojects:sand_drawing:work_logs:even_mode_software [2020/05/26 11:57] tjhowse
Line 12: Line 12:
  
 Another, much cooler solution, would be to listen to another MQTT topic that can be used to transmit Python generator code to the robot. This would be a cool way of sending quite complex pattern generators to the robot without using much RAM. Another, much cooler solution, would be to listen to another MQTT topic that can be used to transmit Python generator code to the robot. This would be a cool way of sending quite complex pattern generators to the robot without using much RAM.
 +
 +=== Generators ===
 +
 +I wrote the structure to support sending short snippets of python code to the robot. These snippets must implement a generator function, named "generator", that produces a GCODE instruction on every request for them to produce a value. This lets me move my GCODE generator helpers that I was writing to generate GCODE straight into the microcontroller and run them there. Very handy.
 +
 +I also added code to save/list/delete generators already on the robot, so you can send your generators to be stored on the robot and then shuffle through them. Very nice.
  
 ====== What I want to accomplish next time ====== ====== What I want to accomplish next time ======
  
   * Build the electronics.   * Build the electronics.
projects/sand_drawing/work_logs/even_mode_software.txt · Last modified: 2020/06/04 00:36 by tjhowse