Regbot firmware

From Rsewiki
Revision as of 09:53, 11 March 2025 by Jca (talk | contribs) (Created page with "Back to Regbot == Main structure == The main (Arduino) file is ''regbot.ino'' Arduino starts by calling a ''setup()'' function. This function sets up all modules and used libraries. Arduino then calls ''loop()''. This function holds the main loop: * listen for incoming commands (from USB) * and at regular intervals (1ms) ** read sensors, ** run control ** implement on actuators ** do data logging")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Back to Regbot

Main structure

The main (Arduino) file is regbot.ino

Arduino starts by calling a setup() function. This function sets up all modules and used libraries.

Arduino then calls loop(). This function holds the main loop:

  • listen for incoming commands (from USB)
  • and at regular intervals (1ms)
    • read sensors,
    • run control
    • implement on actuators
    • do data logging