Start: 11:00pm
- Found the main problem with the comutil. Apparently I started implementing the large data transfer but did not finish so it was bugging out.
- For whatever reason, casting the return of ceil(float), wouldn’t work the way I am used to (int)ceil(float). Instead I had to use int(ceil(float)).
- Fixed the problem with calculating packets of data in the send buffer and the packets sent counter.
- The reason I needed to move the message from the end of the data transefer to the beginning is the number of packets was getting corrupted and returning 255. This meant that every send tried to send 255 packets. Single transfers were working fine but multiple pass echo testing was broken.
- Still having a problem with echoing back from the arduino. I also need to test multiple packet data to make sure that it is actually working as intended.
- Changed the name of the library from ComConsoleLib.lib to DataCommunication.lib
- The ComMonitor class is now just called Monitor
- _isLocal and related methods and variables are now called isShared. This signifies data that will cross the wire. The criteria to send something across is that it must be initialized as isShared and be dirty. An object becomes dirty when you use the setData method of the DataElement. Although its not the most memory efficient way to do things, using container variables in your class and then sync them with their datadictionary entries at the end of the classes cycle, may be the best way to ensure the datadictionary is aware of the change without having to use the dataelements set command throughout your whole class.
- http://www.wholetomato.com/default.asp —- This is a add-on for Visual Studio. It has a lot of good reviews from c++ developers as it adds a lot of the convience of the .net/java ide. It is not free but their is a trial so I will see if its worth the money. It is $250 for the professional license or $100 for the personal license.
End: 7:00am
