Thomas Morris
/
PROJ324_Final
Proj 324 Final
Fork of ELEC351_Group_T by
Diff: SERIAL.cpp
- Revision:
- 47:6d128e500875
- Parent:
- 26:78f5e454e59f
- Child:
- 48:244d6d81bb52
diff -r bd9e7e40b3f9 -r 6d128e500875 SERIAL.cpp --- a/SERIAL.cpp Mon Jan 08 19:03:49 2018 +0000 +++ b/SERIAL.cpp Mon Jan 08 21:53:40 2018 +0000 @@ -1,40 +1,26 @@ #include "SERIAL.hpp" +bool Decimal_Check(char Input[100]) +{ + for(int x = 0; x < sizeof(Input); x++) + { + if(Input[x] == '.'){return true;} + } + return false; +} + +int Decimal_Position(char Input[100]) +{ + for(int x = 0; x < sizeof(Input); x++) + { + if(Input[x] == '.'){return x;} + } + return 0; +} + -void DELETE_ALL() -{ -} -void READ_n() -{ - -} -void DELETE_n() -{ - -} -float SETDATE() -{ - float Time; - cout << "Please enter the Time in Seconds:" << endl; - cin >> Time; // Needs input checking - return Time; -} -float SETT()//Set the Sampling Rate -{ - float Sampling_Time; - cout << "Please enter the sampling rate in Seconds:" << endl; - cin >> Sampling_Time; // Needs input checking - return Sampling_Time; -} -void STATE() -{ - -} -void LOGGING() -{ - -} + void HELP() { //Mutex This