#include <stdio.h>
int main()
{
int ret_value;
double dbl_value;
POIC_Command_System_Status status;
if( ret_value )
printf( "Error %d when attempting to get the command system status.\n", ret_value );
else
{
if( status.user_enabled )
printf( "User is enabled.\n" );
else
printf( "User is disabled.\n" );
}
"POIC",
"LOAD_PARAMETER",
"WORD04",
12.5 );
if( ret_value )
printf( "Error %d when updating numeric field.\n", ret_value );
else
{
"POIC",
"LOAD_PARAMETER",
"WORD04",
&dbl_value );
if( ret_value )
printf( "Error %d when retrieving number field value.\n", ret_value );
else
printf( "Value is %lf.\n", dbl_value );
}
"LOAD_PARAMETER" );
if( ret_value )
printf( "Error %d when attempting to build and uplink a command.\n", ret_value );
else
printf( "Command successfully sent.\n" );
"POIC",
"LOAD_PARAMETER" );
if( ret_value )
printf( "Error %d when updating the POIC database.\n", ret_value );
else
{
"LOAD_PARAMETER" );
if( ret_value )
printf( "Error %d when requesting command uplink.\n", ret_value );
else
printf( "Updated and uplinked the command from the POIC database.\n" );
}
return 0;
}