state-handler: #6 rename the class

This commit is contained in:
Vasily Davydov
2022-10-05 10:27:12 +03:00
parent 5d23955574
commit 5eb7933676
7 changed files with 36 additions and 36 deletions

View File

@@ -0,0 +1,47 @@
/*
* Counter.cpp
*
* Created on: Sep 1, 2022
* Author: tylen
*/
#include "Counter.h"
#include "Counter.h"
void Counter::inc() {
if(init >= up_lim){
init = 0;
} else{
++init;
}
}
void Counter::dec() {
if(init <= 0){
init = up_lim;
} else{
--init;
}
}
int Counter::getInit(){
return this->init;
}
Counter::Counter(int i, int up) {
up_lim = up;
if(i > up){
init = up;
}else if(i < 0){
init = 0;
}else{
init = i;
}
}
void Counter::setInit(int i){
init = i;
}

View File

@@ -0,0 +1,27 @@
/*
* StateHandler.cpp
*
* Created on: Sep 21, 2022
* Author: tylen
*/
#include <StateHandler.h>
StateHandler::StateHandler(EVENT_HANDL * btns) {
// TODO Auto-generated constructor stub
}
StateHandler::~StateHandler() {
// TODO Auto-generated destructor stub
}
int StateHandler::getSetPresuure(){
//TODO
return 0;
}
int StateHandler::getSetSpeed(){
// TODO
return 0;
}