USST-RADSAT-SK / software-and-command

Code and Documentation for USST’s RADSAT-SK in their first Canadian CubeSat Project
8 stars 0 forks source link

Included Satellite Subsystem Interface library within the Eclipse project settings #129

Closed tyrelkostyk closed 2 years ago

tyrelkostyk commented 2 years ago

Updated the project settings to include the ISISpace SSI Library. Note that the library itself will never be on GitHub (as stated in the .gitignore), so they have to be manually downloaded.

Before approving this PR, please follow the instructions in the DropBox Training Doc (found here), in Section 4.5.3. After downloading the proper folder, checkout this branch, and compile the code to ensure it works. To confirm that the library is being referenced properly, add the following lines:

  1. #include <satellite-subsystems/IsisTRXVU.h> Add this near the top, to include the correct header file
  2. int res = IsisTrxvu_tcClearBeacon((unsigned char)8); Add this in the middle of main() to access the library

Again, confirm that it compiles without warning. THEN you can approve the PR. Thanks :)

ChrisAmaya commented 2 years ago

Initial Build: Worked

Implementing steps 1 and 2 I did get a build error main.c:75: undefined reference to `IsisTrxvu_tcClearBeacon'

I right-clicked on the "radsat-sk" folder, went to properties -> C/C++ General -> Path and Symbols then I hit apply

After that, I could build with no errors

This gets my stamp of approval

ChrisAmaya commented 2 years ago

I think that extra step is needed for the first time you build with a no library on a computer, I may be wrong but that's what it seems like