proj: Implement simple TX-RX comms#56
Conversation
Create FSK_TX, FSK_RX, rx_demod scripts
|
|
||
|
|
||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Refer to coding style guidelines for adding empty lines in code.
|
|
||
| } | ||
|
|
||
| // TWO OPTIONS: SINGLE WAVE --> enable in the loop with delay; CONTINUOUS WAV --> enable in the set up |
There was a problem hiding this comment.
Comment potentially not needed?
| // wait for the data and send it | ||
| while(!SensEdu_ADC_GetTransferStatus(adc)); | ||
| SensEdu_ADC_ClearTransferStatus(adc); | ||
| serial_send_array((const uint8_t *) & mic_data, mic_data_size << 1); |
There was a problem hiding this comment.
we should have the reference operator & without 'space' between it and the type or the variable. Refer to previous examples.
| data = zeros(1,ITERATIONS); | ||
| time_axis = zeros(1,ITERATIONS); |
| % % save measurements | ||
| % if ~exist("Measurements", 'dir') | ||
| % mkdir("Measurements"); | ||
| % end | ||
| % file_name = sprintf('Measurements/%s_%s.mat', "measurements", datetime("now")); | ||
| % file_name = strrep(file_name, ' ', '_'); | ||
| % file_name = strrep(file_name, ':', '-'); | ||
| % save(file_name, "data", "time_axis"); |
There was a problem hiding this comment.
Remove completely if not needed.
svire-at
left a comment
There was a problem hiding this comment.
Looks good! In general, the coding style and neatness of the code should be taken care of. I left couple of comments as an example what should be changed.
| .mem_address = (uint16_t*)sine_lut, // TODO | ||
| .mem_size = sine_lut_size, // TODO |
|
|
||
| // Configure the DAC | ||
|
|
||
| #define DAC_SINE_FREQ 33000 // 32kHz |
There was a problem hiding this comment.
Comment doesn't match the actual frequency that is set
|
@svire-at fixed. Please review it again in case it needs another changes. |
* feat: Add basic structure for FSK project * feat: Implement simple TX-RX transmission Create FSK_TX, FSK_RX, rx_demod scripts * Fix: coding style (#56) * feat: Add two frequency settings * feat: Implemented loop for bit modulation * feat: TX with two DAC * feat: Create Tx Rx sync with 2 DAC * feat: Encode U symbol successfully * feat: FSK demodulation working * feat: Dynamic LUT implemented * feat: Implement dynamic thresholding Update Algorithm Add Serial Monitor message transmission * feat: Code polished * refactor: Fix styling
Please check if the Pull Request fulfils these requirements
Type: Descriptive NameLink related open issue
[TASK] Simple TX-RX Wave Transmission for FSK #50
Provide a short description
Implement simple TX-RX path between two SensEdu boards
Does this PR introduce a breaking change? (What must be changed in other projects/examples due to this PR?)
N/A
Other information (Anything else reviewers should know)
N/A