![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
FINAL PROJECT isn't it
Fork of ELEC351 by
SERIAL.cpp
- Committer:
- thomasmorris
- Date:
- 2018-08-15
- Revision:
- 57:aba1296e51b1
- Parent:
- 53:71f59e195f06
File content as of revision 57:aba1296e51b1:
#include "SERIAL.hpp" extern bool motor_direction = 0; bool Decimal_Check(char Input[100]) //Check if there is a decimal within the Array { for(int x = 0; x < sizeof(Input); x++) { if(Input[x] == '.'){return true;} //Return true if one is found } return false; //Return false if one is not found } int Decimal_Position(char Input[100]) //Check where the decimal is positioned { for(int x = 0; x < sizeof(Input); x++) { if(Input[x] == '.'){return x;} //Return the position x of the Decimal } return 0; }