Program for the water play project for the course Software Testing Practical 2016 given at the VU University

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Revision:
57:8dc3192ff150
Parent:
55:ee80f248919d
Child:
58:b5f0c0f305ff
--- a/Controller.cpp	Sun Jun 19 20:55:16 2016 +0000
+++ b/Controller.cpp	Sun Jun 19 22:21:08 2016 +0000
@@ -10,7 +10,7 @@
     this->num_iters = 0;
 }
 
-bool Controller::is_threaded() {
+bool Controller::isThreaded() {
     return this->threaded;    
 }
 
@@ -19,36 +19,36 @@
         this->update();    
     } else if(!this->has_spawned) {
         has_spawned = true; 
-        Thread t (Controller::thread_stub, this);
+        Thread t (Controller::threadStub, this);
         this->ctrl_thread = &t;
     }
     
     this->num_iters++;
 }
 
-int Controller::get_interval_ms() {
+int Controller::getIntervalMs() {
     return this->interval_ms;    
 }
 
-void Controller::set_priority(osPriority priority) {
+void Controller::setPriority(osPriority priority) {
     this->prio = priority;
     if(this->has_spawned)
-        this->ctrl_thread->set_priority(priority);
+        this->ctrl_thread->setPriority(priority);
 }
 
-osPriority Controller::get_priority() {
+osPriority Controller::getPriority() {
     return this->prio;
 }    
 
 // Called when a thread is spawned.
-void Controller::thread_stub(void const *args) {
+void Controller::threadStub(void const *args) {
     Controller *controller = (Controller*)args;
     
     // Run forever.
     while(1) {
-        std::cout << "[THREAD] running " << controller->get_name() << "\r\n";
+        std::cout << "[THREAD] running " << controller->getName() << "\r\n";
         controller->run();
-        Thread::wait(controller->get_interval_ms());
+        Thread::wait(controller->getIntervalMs());
     }
     
 }
\ No newline at end of file