Project summary 3
Robot cat 3
Robot firmware code 3
Robot control code 4
Computer vision code 6
Next steps 7
CatBot Control Introduction 7
Main Execution File (main.cpp) 7
Compilation Warnings 8
Namespaces 8
Global Definitions File (definitions.h) 8
#define values 8
Use of enums 8
Use of ref structs & ref classes 8
Port Manager Object (PortManager.h & PortManager.cpp) 9
Port Available and Robot Ready functions 9
Sending BT Messages to an NXT 9
SerialPort object 10
Catbot Auto Control object (CatbotAutoCtrl.h & CatbotAutoCtrl.cpp) 10
FilePath variable 10
Reading OpenCV data 11
Calculating Catbot Motion 11
Application UI (AppUI.h, AppUI.cpp & AppUI_Events.cpp) 11
Functions for the Setup Tab 11
Manual Controls 12
Automatic Control 12