Massey 2017, Group 5, AGV control software.

Dependencies:   Commands charQueue esp8266-driver

Committer:
williampeers
Date:
Wed Aug 23 02:10:36 2017 +0000
Revision:
0:91703b1eb29e

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
williampeers 0:91703b1eb29e 1 #include "positioning.h"
williampeers 0:91703b1eb29e 2
williampeers 0:91703b1eb29e 3 /*
williampeers 0:91703b1eb29e 4 Initialise object.
williampeers 0:91703b1eb29e 5 Call initators for any local objects.
williampeers 0:91703b1eb29e 6 */
williampeers 0:91703b1eb29e 7 Positioning::Positioning(osPriority priority, int memory) {
williampeers 0:91703b1eb29e 8 positioning_thread = new Thread(priority, memory);
williampeers 0:91703b1eb29e 9
williampeers 0:91703b1eb29e 10 }
williampeers 0:91703b1eb29e 11
williampeers 0:91703b1eb29e 12 /*
williampeers 0:91703b1eb29e 13 Infinite loop that will be run. like a main loop.
williampeers 0:91703b1eb29e 14 */
williampeers 0:91703b1eb29e 15 void Positioning::run() {
williampeers 0:91703b1eb29e 16 while (true) {
williampeers 0:91703b1eb29e 17
williampeers 0:91703b1eb29e 18 }
williampeers 0:91703b1eb29e 19 }
williampeers 0:91703b1eb29e 20
williampeers 0:91703b1eb29e 21 /*
williampeers 0:91703b1eb29e 22 Called by main at the start of operation to start the thread running.
williampeers 0:91703b1eb29e 23 */
williampeers 0:91703b1eb29e 24 void Positioning::start() {
williampeers 0:91703b1eb29e 25 positioning_thread.start(callback(this, &Positioning::run));
williampeers 0:91703b1eb29e 26 }