On C++ is there someway to make your program:
make a new file named coördinates
everytime the program starts it has to save the sentence on the file: new track.
put data into that file like x: 50 y: 60 z: 90 (enter)
and keep saving the coördinates on that file for as long as the program runs.
the data recieved is like this: 10 4a 11 22 33 44 55 66 77 88 10 03
if the data has correct id 4a then it should its ready for the next step
if not the data has to be ingnored
if 4a then it gets devided in several pieces (x = 11223344 and y = 55667788 ...) (the 10 03 is stop bit)
then the x and y go trought a HEX to BIN converted and then they get converted whit IEEE754 BIN32 to DEC
if you want ill send you an email whit my entire program
serial communication
1 2 3 4 5
std::string id_strnormal = "4a";
std::string start_str = code.substr(0, 2);
std::string id_str = code.substr(2, 2);
if (id_str == id_strnormal)
//id is 4a and correct
HEX to BIN converter
BIN to DEC converter with IEEE754
//the DEC coördinates are outputted and should be putted in the .txt file