-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from nasa-itc/nos3#88-cfs-upgrade
nos3#88 - cFS Upgrade
- Loading branch information
Showing
14 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,6 @@ [email protected] | |
#include <arpa/inet.h> | ||
#include <netinet/in.h> | ||
|
||
/* psp */ | ||
#include <cfe_psp.h> | ||
|
||
/* nos */ | ||
#include <Spi/Client/CInterface.h> | ||
|
||
|
@@ -45,7 +42,7 @@ int32_t trq_update(trq_info_t* device) | |
float percent_high_dir = 100.0 * device->timer_high_ns / device->timer_period_ns; | ||
|
||
// Take into account the direction | ||
if (device->positive_direction == FALSE) | ||
if (device->positive_direction == false) | ||
{ | ||
percent_high_dir = percent_high_dir * -1; | ||
} | ||
|
@@ -60,15 +57,15 @@ int32_t trq_update(trq_info_t* device) | |
{ | ||
if (num_send_errors++ < 10) | ||
{ // don't spam | ||
OS_printf("NOS command_torquer: Only sent %d bytes of %d bytes. Message was: %s\n", bytes_sent, strlen(message), message); | ||
printf("NOS command_torquer: Only sent %d bytes of %d bytes. Message was: %s\n", bytes_sent, strlen(message), message); | ||
} | ||
status = TRQ_ERROR; | ||
} | ||
} else | ||
{ | ||
if (num_conn_errors++ < 10) | ||
{ // don't spam | ||
OS_printf("NOS command_torquer: Socket not connected (%d).\n", sockfd); | ||
printf("NOS command_torquer: Socket not connected (%d).\n", sockfd); | ||
} | ||
status = TRQ_ERROR; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters