-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
samples: bluetooth: Update distance estimation for mode 3 and multi a… #19252
samples: bluetooth: Update distance estimation for mode 3 and multi a… #19252
Conversation
98ce329
to
0b19f2e
Compare
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: d405961ead610f8bf29f5d77b6769d3c8565d3c1 more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: b77d8c1312 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
0b19f2e
to
bfb2063
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
mode_1_data[context->mode_1_data_index].toa_tod_initiator = | ||
peer_step_data->toa_tod_initiator; | ||
} | ||
} else if (local_step->mode == BT_HCI_OP_LE_CS_MAIN_MODE_3) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would probably be a bit more logical to add this later (when the sample actually generates mode 3 steps)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't see a down side to merging this now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to run the sample test locally as since it doesn't run in babblesim/oncommit
@@ -21,7 +21,8 @@ LOG_MODULE_DECLARE(app_main, LOG_LEVEL_INF); | |||
#define SPEED_OF_LIGHT_M_PER_S (299792458.0f) | |||
#define SPEED_OF_LIGHT_NM_PER_S (SPEED_OF_LIGHT_M_PER_S / 1000000000.0f) | |||
#define PI 3.14159265358979323846f | |||
#define MAX_NUM_SAMPLES 256 | |||
#define MAX_NUM_RTT_SAMPLES 256 | |||
#define MAX_NUM_IQ_SAMPLES 256 * CONFIG_BT_RAS_MAX_ANTENNA_PATHS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not really related to this PR but I suppose another improvement would be to process the tone extension slots
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…ntenna Mode 3 is a combination of modes 1 and 2, so extract out some of the common logic and use this for mode 3. Adjust array sizes and indexes so they can be used for multi antenna. Signed-off-by: Sean Madigan <[email protected]>
bfb2063
to
d405961
Compare
…ntenna
Mode 3 is a combination of modes 1 and 2, so extract out some of the common logic and use this for mode 3.
Adjust array sizes and indexes so they can be used for multi antenna.