pub struct StateOfHealth {
pub reset_count: u32,
pub current_time: u32,
pub current_rssi: u8,
pub connection_status: u8,
pub globalstar_gateway: u8,
pub last_contact_time: u32,
pub last_attempt_time: u32,
pub call_attempts_since_reset: u32,
pub successful_connects_since_reset: u32,
pub average_connection_duration: u32,
pub connection_duration_std_dev: u32,
}
Struct for storing state of health records
(4 byte integer) Current epoch reset count, starts at 0,
incremented for each power system reset, persistent over the life of the mission
(4 byte integer) Current time (seconds) from start of most recent reset
(1 byte integer) Current RSSI (Received Signal Strength Indicator), 0 to 4
(1 byte integer) Connection status, 0 (connected) or 1 (disconnected)
(1 byte integer) Globalstar gateway connected to, proprietary ID, 0 to 255
(4 byte integer) Last contact time, seconds since latest reset
(4 byte integer) Last attempt time, seconds since latest reset
(4 byte integer) Count of call attempts since latest reset
(4 byte integer) Count of successful connects since latest reset
(4 byte integer) Average connection duration (seconds)
(4 byte integer) Connection duration standard deviation (seconds)
Parse StateOfHealth from the serial line.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more