foxsi / foxsi-4matter

Code for FOXSI-4 telemetry formatter.
https://foxsi.umn.edu/
1 stars 3 forks source link

Encapsulate global parameters and free functions in a namespace #30

Closed KriSun95 closed 1 year ago

KriSun95 commented 1 year ago

The following files

contain variable and function declarations in the global scope—they are not part of any class. It would be safer to wrap all of these in a namespace. Then, instead of referring to the SPACEWIRE_ADDRESS_LENGTH variable, we could do parameters::SPACEWIRE_ADDRESS_LENGTH or something. Same thing for the functions in Utilities.h.

So the todo items for this task:

From Thanasi's Google Doc

yixianz commented 1 year ago

Addressed in #37