Download Camera System for Pico Satellites

Transcript
B.3 MAIN thread
B.3
MAIN thread
Initialized by bootcode.
Spawn ComC_thread
ComC_thread
cmd_buffer pointer
Upload SRAM code to SRAM
Command in cmd_buffer
Commands and arguments
comes in as a packet in the
cmd_buffer. Commands are
translated to a function and
arguments are translated into
variables used when the
functions are called.
Remove command from cmd_buffer
[Valid command]
[!Valid command]
Call function
Send UNKNOWN_COMMAND to
ComC_thread
Status ComC_thread
Figure B.3: The image handling thread illustrated as a flowchart spawns a communication thread
and runs one function at a time if a command is present in the command buffer.
Page 177 of 199