Dear embedded people,
I am having trouble importing the NREL’s Solar Positioning Algorithm. (SPA)
check link: http://rredc.nrel.gov/solar/codesandalgorithms/spa/ in FEZ cobra as RLP.
The following approach was taken:
- Compile the Spa.c and Spa.h for EMX in ELF format (Finally worked with -lm switch)
- Import in VS 2010 as a resource (Great, Project properties - >Add Resource)
- Now have to somehow import / export the spa_data structure and interact with managed C# code (interop ?)
Have no clue how to approach point 3.
I would be very thankfull if someone could help me on this or may share the same interest.