Creating a version of 4DIAC-IDE and FORTE already set-up with LMS Palette.
It should be a zip that can be used as soon as its extracted even on an USB stick.
- clone from hg (synchronize, test, export)
- copy into 4DIAC-IDE directory:
- template directory from hg
- typelibrary with default configuration FBs
- working on lms palette to be included with:
- OFF- turns the LMS off (=shutdown)
- OFF is a shorter name than shutdown
- LED- light sensor led
- TOUCH
- LT (reads light sensor value)
- set preferences
- looking into using system variable for current path in 4diac-ide code:
- org.fordiac.ide.fbrtLauncher\src\org\fordiac\ide\fbrtlauncher\preferences\PreferenceInitializer.java
- FORTE
- FBDK
- export all lms /lms FB types
FORTE
Stage 1: (compile hg version)
- clone from hg
- copy in ecos include and lib directories under bin/lms directory
- run setup_lms.sh
- run bin/lms/make all 2-3 times until only get a compile error
- change src/makefile.am to include the whole lms pallete and only FBs needed
- see if easy to add lms conditional variable to configure.in
- E_SWITCH
- E_CYCLE
- E_RS
- E_SR
- E_CTU?
- E_DELAY?
- run bin/lms/make all
- Note: This executable will do nothing yet because lmsmain.cpp still has the empty default code.
Stage 2: (compile to run on lms)
- copy in the src/arch/ecos/lms the minimum files needed:
- lmsmain.cpp
- arv_ctl.c / .h
- i2c_at91sam7sxxx.c / .h
- Buttons.c/ .h
- Port reservation files (sensor INIT service)
- run run bin/lms/distclean
- run bin/lms/make all until no errors
- Flash LMS NXT with forte.bin
- start USB ethernet bat
- would be nice if bat file could be connected into deployment directly
- deploy application to LMS NXT
No comments:
Post a Comment