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

  • Thread starter Thread starter Firben
  • Start date Start date
  • Tags Tags
    Exam
Click For Summary
SUMMARY

The discussion focuses on writing a C code snippet to combine mission time and on-board time into SSP time for the Surface Science Package. The required hexadecimal values are missionTime = 0xFFF and onboardTime = 0x2AA, which are derived from a referenced figure. Participants emphasize that the solution should consist solely of code lines without additional subroutines or headers, clarifying the problem's constraints.

PREREQUISITES
  • Understanding of C programming syntax and structure
  • Familiarity with hexadecimal number representation
  • Knowledge of bitwise operations in C
  • Basic concepts of time representation in programming
NEXT STEPS
  • Research C programming techniques for manipulating hexadecimal values
  • Learn about bitwise operations in C for time calculations
  • Explore the Surface Science Package (SSP) and its applications
  • Study examples of combining multiple time formats in embedded systems
USEFUL FOR

Students learning C programming, software developers working on embedded systems, and engineers involved in scientific data processing.

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)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
Replies
5
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
58
Views
13K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 49 ·
2
Replies
49
Views
12K
Replies
10
Views
10K