Tuesday, May 10, 2011

May 10 Code Clean-up / Design updates

LMS code is moving up from forte with exporter ver. 3 to ver. 4

Additionally the code is being cleaned-up from c code that works to c++ code in forte.





Two shells scripts were created to take of pre- and post- build (make all)  tasks:



  • setup_lms.sh 
    • allocates bin/lms and bin/lms/src
    • copies lms ecos include and lib directories in bin directory
  • finish_lms.sh 
    • creates forte.bin






LMS is no longer in arch/ecos directory but in its own directory with other FBs under modules:

  • src/modules/lms: FBs and device interface code
    • open: where does platform_i2c.c /.h go?
  • src/modules/lms/lms_hw: has ecos and hw interface code
  • src/modules/lms/lms_ecos : lms ecos specific
Here is a working draft UML class diagram with design / transformation to C++

The avr controller and port manager are not yet LMS_DEV class member.
If only 1 instance of a class was currently wanted, all methods were made static.
























No comments:

Post a Comment