Start: 9:30
Com Console:
- Removed parts from the monitor class and put them into the ComMgr and ArduinoController classes.
- Useful Windows console functions: http://msdn.microsoft.com/en-us/library/ms682073%28v=VS.85%29.aspx
- Added sizing to the constructor so that the buffer and windows size will be appropriate for the application. It seems that the buffer size width and height must be in a certain ratio in order to work properly.
- Got multiple lines to be overwritten using SetConsoleCursorPosition to set it to (0,0). At first I used std::system (“CLS”) to clear the screen, but this was flashy so the other way is better.
- Added an output array to receive data to be printed from other classes
- added Printable class so there is a common type for the print method to use
- removed test data and methods
- sprintf is used to format char* to a char* without printing it
Notes:
- malloc is prefered over calloc not exactly sure why besides it having less parameters and something about calloc zeroing everything. Will need this when sending large objects over the usb wire.
End: 6:00

Malloc is for allocating straight memory for anything. Calloc is just for arrays. One is not better than the other, they both serve their purpose 🙂