-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed sender to node in applicable settings.
- Loading branch information
1 parent
a13b069
commit 7b934af
Showing
16 changed files
with
68 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
use messages::sender::Sender; | ||
use messages::sender::Sender::BeaconBoard; | ||
use messages::node::Node; | ||
use messages::node::Node::BeaconBoard; | ||
|
||
// ------- | ||
// Sender ID | ||
// Node ID | ||
// ------- | ||
pub static COM_ID: Sender = BeaconBoard; | ||
pub static COM_ID: Node = BeaconBoard; | ||
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
use messages::sender::{Sender, Sender::CameraBoard}; | ||
use messages::node::{Node, Node::CameraBoard}; | ||
// ------- | ||
// Sender ID | ||
// Node ID | ||
// ------- | ||
pub static _COM_ID: Sender = CameraBoard; | ||
pub static _COM_ID: Node = CameraBoard; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
use messages::sender::{Sender, Sender::PowerBoard}; | ||
use messages::node::{Node, Node::PowerBoard}; | ||
// ------- | ||
// Sender ID | ||
// Node ID | ||
// ------- | ||
pub static _COM_ID: Sender = PowerBoard; | ||
pub static _COM_ID: Node = PowerBoard; |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
use messages::sender::Sender; | ||
use messages::sender::Sender::RecoveryBoard; | ||
use messages::node::Node; | ||
use messages::node::Node::RecoveryBoard; | ||
|
||
// ------- | ||
// Sender ID | ||
// Node ID | ||
// ------- | ||
pub static COM_ID: Sender = RecoveryBoard; | ||
pub static COM_ID: Node = RecoveryBoard; |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use messages_proc_macros_lib::common_derives; | ||
|
||
// I don't agree with the naming, We can use these as Ids to sent commands to that specific board. | ||
#[common_derives] | ||
#[derive(Copy)] | ||
pub enum Node { | ||
GroundStation, | ||
SensorBoard, | ||
RecoveryBoard, | ||
CommunicationBoard, | ||
PowerBoard, | ||
CameraBoard, | ||
BeaconBoard, | ||
} | ||
|
||
impl From<Node> for u16 { | ||
fn from(node: Node) -> Self { | ||
match node { | ||
Node::GroundStation => 0, | ||
Node::SensorBoard => 1, | ||
Node::RecoveryBoard => 2, | ||
Node::CommunicationBoard => 3, | ||
Node::PowerBoard => 4, | ||
Node::CameraBoard => 5, | ||
Node::BeaconBoard => 6, | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.