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

Unix Time Conversion functoins #162

Closed tyrelkostyk closed 2 years ago

tyrelkostyk commented 2 years ago

We need two functions for timekeeping:

  1. timeConvertUnixToCalender -> Converts unix epoch time (uint32_t) to the Time struct defined by ISISpace
  2. timeConvertCalenderToUnix -> The opposite ^

Can probably just go inside the operation layer, as operation/utility/utility.c . I'm sure we'll put other generic functions in there in the future. When you go to create the new file, make sure you add it as a "c source file" and "c header file" not regular files