Code for microprocessor modules controlling the WEEDINATOR agricultural robot and manufacturing files. All code compiles using the Arduino IDE and is in .ino format.
A 3 core TC275 running at 200 MHz controls the various motors with step pulses and direction HIGH / LOW. On the I2C bus it is the MASTER.
A MEGA 2560 is used mainly for good compatibility with existing arduino modules and code. Its function is to receive data from
Heading
is the direction that the machine is actually travelling inBearing
is the direction that it needs to go in.Subtracting one from the other gives the direction and amount that the steering needs to turn.