How to Combine Mission Time and On-Board Time into SSP Time

  • Thread starter Thread starter Firben
  • Start date Start date
  • Tags Tags
    Exam
AI Thread Summary
The discussion revolves around writing a C code snippet to combine mission time and onboard time into SSP time for a Surface Science Package. Participants express confusion about determining the hexadecimal values for missionTime and onboardTime, which are specified as 0xFFF and 0x2AA, respectively. The focus is on providing a code solution rather than just values, emphasizing that the task requires a specific coding format without additional headers or subroutines. Clarification is sought regarding how to derive the values from a referenced figure. The conversation highlights the importance of adhering to the problem's requirements while coding.
Firben
Messages
141
Reaction score
0

Homework Statement



Write a small c-code (not a subroutine, no header etc, only part of code) that take the mission time and the on-board time and combines these into SSP time. SSP stands for Surface Science Package

Homework Equations



See the Variables in the figure below

http://s716.photobucket.com/user/Pi...s[user]=86328122&filters[recent]=1&sort=1&o=0

The Attempt at a Solution



unsigned int missionTime=0x??, onboardTime=0x??;

void main(void) {

sspTime =

}

I don't know what value missionTime and onboardTime should have. From the Figure 3 in the link, how can i determine the hexadecimal values that the missionTime and onBoardTIme should have ?

The answer should be missionTime=0xFFF, onboardTime=0x2AA; but i don't know why
 
Physics news on Phys.org
Firben said:
The answer should be missionTime=0xFFF, onboardTime=0x2AA; but i don't know why
The problem is asking for a bit of code, not a value. The answer will be some lines of code. Maybe an example is given using these values.

Firben said:
void main(void) {
Did you read the problem statement? (not a subroutine, no header etc, only part of code)
 
Back
Top