Massey 2017, Group 5, AGV control software.

Dependencies:   Commands charQueue esp8266-driver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pathfinding.cpp Source File

pathfinding.cpp

00001 #include "pathfinding.h"
00002 
00003 /*
00004 Initialise object.
00005 Call initators for any local objects.
00006 */
00007 Pathfinding::Pathfinding(osPriority priority, int memory){
00008     pathfinding_thread = new Thread(priority, memory);
00009 }
00010 
00011 /*
00012 Infinite loop that will be run. like a main loop.
00013 */
00014 void Pathfinding::run() {
00015     while (true) {
00016         
00017     }
00018 }
00019 
00020 /*
00021 Called by main at the start of operation to start the thread running.
00022 */
00023 void Pathfinding::start() {
00024     pathfinding_thread.start(callback(this, &Pathfinding::run));
00025 }