Skip to content

Commit

Permalink
Update Python definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
axlan committed Nov 15, 2023
1 parent f06ce57 commit 3e1e24c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
37 changes: 31 additions & 6 deletions python/fusion_engine_client/messages/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,20 +674,45 @@ class LBandConfig(NamedTuple):
## For example, a value of 6000 will search +/- 3 kHz around the center
## frequency.
search_window_hz: float
## If `true`, use the provider service ID in this configuration. Otherwise,
## use device's default value.
use_custom_pmp_service_id: bool
## If `true`, use the provider date rate in this configuration. Otherwise, use
## device's default value.
use_custom_pmp_data_rate: bool
## If `true`, use the provider unique word in this configuration. Otherwise,
## use device's default value.
use_custom_pmp_unique_word: bool
## If `true`, use the descrambler initialization vector in this configuration.
## Otherwise, use device's default value.
use_custom_descrambler_init: bool
## If `true`, only output data frames with the configured service ID.
## Otherwise, output all decoded frames.
filter_data_by_service_id: bool
## Enable/disable the descrambler. */
use_descrambler: bool
## Service ID of the provider.
pmp_service_id: int
## Data rate of the provider (bps).
pmp_data_rate_bps: int
## Unique word of the provider.
pmp_unique_word: int
## Data rate of the provider (bps).
pmp_data_rate_bps: int
## The initialization value for the descrambling vector.
descrambler_init: int

LBandConfigConstruct = Struct(
"center_frequency_hz" / Float32l,
"center_frequency_hz" / Float64l,
"search_window_hz" / Float32l,
"pmp_service_id" / Int32ul,
"use_custom_pmp_service_id" / Flag,
"use_custom_pmp_data_rate" / Flag,
"use_custom_pmp_unique_word" / Flag,
"use_custom_descrambler_init" / Flag,
"filter_data_by_service_id" / Flag,
"use_descrambler" / Flag,
"pmp_service_id" / Int16ul,
"pmp_unique_word" / Int64ul,
"pmp_data_rate_bps" / Int16ul,
Padding(2),
"pmp_unique_word" / Int32ul,
"descrambler_init" / Int16ul,
)

class Empty(NamedTuple):
Expand Down
6 changes: 3 additions & 3 deletions src/point_one/fusion_engine/messages/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -1440,14 +1440,14 @@ struct P1_ALIGNAS(4) TroposphereConfig {
*/
struct P1_ALIGNAS(4) LBandConfig {
/**
* The center frequency of the L-band beam (Hz). If `NAN` use the system
* The center frequency of the L-band beam (Hz). If `NAN`, use the system
* default value.
*/
double center_frequency_hz = NAN;

/**
* The size of the signal acquisition search space (in Hz) around the center
* frequency. If `NAN` use the system default value.
* frequency. If `NAN`, use the system default value.
*
* For example, a value of 6000 will search +/- 3 kHz around the center
* frequency.
Expand Down Expand Up @@ -1496,7 +1496,7 @@ struct P1_ALIGNAS(4) LBandConfig {
/** Data rate of the provider (bps). */
uint16_t pmp_data_rate_bps = 0;

/** The initialization value for the descrambling vector */
/** The initialization value for the descrambling vector. */
uint16_t descrambler_init = 0;
};

Expand Down

0 comments on commit 3e1e24c

Please sign in to comment.