-
Notifications
You must be signed in to change notification settings - Fork 0
1.4 Zeus
Martyn Rushton edited this page Feb 19, 2016
·
2 revisions
Zeus is the control system that runs the bot by accessing the rest of the classes. Hopefully Zeus should contain everything that you need to use and access to the other classes should not be needed.
To start using Zeus, you will need to include it and initialise the class.
#include <zeus.h>
Zeus zeus;Each of the other modules, can be initialised through Zeus by doing {classname}Setup.
// Set up a bi-directional DC motor on 7 (enable), 8 (motorControl1), 9 (motorControl2).
zeus.hermesSetup(7, 8, 9);
// Set up two HC-SR04 ultrasound modules.
int anemoiPins[][3] = {{12, 11, 200}, {10, 9, 200}};
zeus.anemoiSetup(anemoiPins, 2);{ADD MORE HERE}