Skip to content

Commit 9befbad

Browse files
authored
Fix typos (#126)
Signed-off-by: tinyboxvk <13696594+tinyboxvk@users.noreply.github.com>
1 parent 577c80e commit 9befbad

14 files changed

+20
-20
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The out of tree module gr-lora_sdr can be installed from source or directly as a
8383
```sh
8484
cd gr-lora_sdr/
8585
```
86-
- You can optionally install the required dependecies using the provided conda environment, or directly install the dependecies independently and bypass the use of conda.
86+
- You can optionally install the required dependencies using the provided conda environment, or directly install the dependencies independently and bypass the use of conda.
8787
You can follow this [tutorial](https://www.how2shout.com/how-to/install-anaconda-wsl-windows-10-ubuntu-linux-app.html) or simply following:
8888
- First download the latest release of conda, for example:
8989
```sh

apps/simulation/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ A simple script measuring the frame error rate of a flowgraph. The error rate is
66
- data: temporary files containing the transmitted payloads, received payloads, and CRC validity for each SNR.
77
- flowgraph: A sample flowgraph class
88
- results: A figure of the obtained FER as well as the values of the data. Can be loaded in ```load_results.py``` to compare different simulations.
9-
- load_results.py: Open prevously obtained curves and plot them alongside each others.
9+
- load_results.py: Open previously obtained curves and plot them alongside each others.
1010
## Usage
1111
- Open ```mc_simulator.py``` and set the parameters you want to evaluate
1212
- ```cd``` to this directory
13-
- Execute ```python mc_simulator.py``` in a teminal
13+
- Execute ```python mc_simulator.py``` in a terminal
1414
- You can load and plot previous simulation results by adding their name inside ```load_results.py```

apps/simulation/mc_simulator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
clk_offset_ppm = 0 # crystal offset in ppm
2323
pay_len = 32 # in bytes
2424
ldro = False # usage of low datarate optimisation mode
25-
soft_decoding = True # usage of soft-decision decoding in hte receiver
25+
soft_decoding = True # usage of soft-decision decoding in the receiver
2626

2727

2828
# Result variables initialisation

docs/doxygen/update_pydoc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def utoascii(text):
8383
if text is None:
8484
return ''
8585
out = text.encode('ascii', 'replace')
86-
# swig will require us to replace blackslash with 4 backslashes
86+
# swig will require us to replace backslash with 4 backslashes
8787
# TODO: evaluate what this should be for pybind11
8888
out = out.replace(b'\\', b'\\\\\\\\')
8989
out = out.replace(b'"', b'\\"').decode('ascii')

grc/lora_sdr_dewhitening.block.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ documentation: |-
2121
Input:
2222
in: stream of payload and CRC nibbles
2323
pay_len: payload length in bytes
24-
new_frame: indicate begining of new frame
24+
new_frame: indicate beginning of new frame
2525
CRC: payload crc presence
2626
Output:
2727
out: dewhitened payload bytes (and CRC if present)

grc/lora_sdr_fft_demod.block.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ documentation: |-
3535
Recover the value of a lora symbol using argmax(DFT(lora_symbol * ref_downchirp)
3636
Parameters:
3737
impl_head: usage of an implicit header (explicit will be used otherwise)
38-
soft_decoding: use soft-decision decoding, outputing LLRs instead of the argmax
38+
soft_decoding: use soft-decision decoding, outputting LLRs instead of the argmax
3939
Input:
4040
in: vector of 2^sf complex samples
4141
Output:

grc/lora_sdr_lora_tx.block.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ documentation: |-
9090
- Frame zero padding: number of null samples padded after each frame
9191
9292
Inputs:
93-
- in: Message of the payload to transmitt
93+
- in: Message of the payload to transmit
9494
Outputs
9595
- out: Stream of baseband complex samples that can be fed to the SDR frontend
9696

lib/crc_verif_impl.cc

+6-6
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace gr
9292
pmt::pmt_t err = pmt::string_to_symbol("error");
9393
m_crc_presence = pmt::to_long(pmt::dict_ref(tags[0].value, pmt::string_to_symbol("crc"), err));
9494
m_payload_len = pmt::to_long(pmt::dict_ref(tags[0].value, pmt::string_to_symbol("pay_len"), err));
95-
curent_tag = tags[0];
95+
current_tag = tags[0];
9696
// std::cout<<m_payload_len<<" "<<nitem_to_process<<std::endl;
9797
// std::cout<<"\ncrc_crc "<<tags[0].offset<<" - crc: "<<(int)m_crc_presence<<" - pay_len: "<<(int)m_payload_len<<"\n";
9898

@@ -149,9 +149,9 @@ namespace gr
149149
produce(1,1);
150150
}
151151
if (output_items.size()){
152-
curent_tag.value = pmt::dict_add(curent_tag.value, pmt::string_to_symbol("crc_valid"), pmt::from_bool(crc_valid == 1));
153-
curent_tag.offset = nitems_written(0);
154-
add_item_tag(0, curent_tag);
152+
current_tag.value = pmt::dict_add(current_tag.value, pmt::string_to_symbol("crc_valid"), pmt::from_bool(crc_valid == 1));
153+
current_tag.offset = nitems_written(0);
154+
add_item_tag(0, current_tag);
155155
}
156156
if (print_rx_msg != NONE)
157157
{
@@ -187,8 +187,8 @@ namespace gr
187187
else if ((in_buff.size()>= m_payload_len) && !m_crc_presence)
188188
{
189189
if (output_items.size()){
190-
curent_tag.offset = nitems_written(0);
191-
add_item_tag(0, curent_tag);
190+
current_tag.offset = nitems_written(0);
191+
add_item_tag(0, current_tag);
192192
}
193193
// get payload as string
194194
message_str.clear();

lib/crc_verif_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace gr {
2020
std::vector<uint8_t> in_buff;///< input buffer containing the data bytes and CRC if any
2121
int print_rx_msg; ///< print received message in terminal. 0: no print, 1: ASCII, 2: HEX
2222
bool output_crc_check; ///< output the result of the payload CRC check
23-
tag_t curent_tag; ///< the most recent tag for the packet we are currently processing
23+
tag_t current_tag; ///< the most recent tag for the packet we are currently processing
2424

2525

2626
uint32_t cnt=0;///< count the number of frame

lib/dewhitening_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace gr {
1111
{
1212
private:
1313
int m_payload_len; ///< Payload length in bytes
14-
int m_crc_presence; ///< indicate the precence of a CRC
14+
int m_crc_presence; ///< indicate the presence of a CRC
1515
int offset = 0; ///< The offset in the whitening table
1616
std::vector<uint8_t> dewhitened; ///< The dewhitened bytes
1717

lib/frame_sync_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace gr
8282
std::vector<gr_complex> additional_symbol_samp; ///< save the value of the last 1.25 downchirp as it might contain the first payload symbol
8383
std::vector<gr_complex> preamble_raw; ///<vector containing the preamble upchirps without any synchronization
8484
std::vector<gr_complex> preamble_raw_up; ///<vector containing the upsampled preamble upchirps without any synchronization
85-
std::vector<gr_complex> downchirp_raw; ///< vetor containing the preamble downchirps without any synchronization
85+
std::vector<gr_complex> downchirp_raw; ///< vector containing the preamble downchirps without any synchronization
8686
std::vector<gr_complex> preamble_upchirps; ///<vector containing the preamble upchirps
8787
std::vector<gr_complex> net_id_samp; ///< vector of the oversampled network identifier samples
8888
std::vector<int> net_ids; ///< values of the network identifiers received

lib/header_decoder_impl.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ namespace gr
186186
for (int i = 0; i < nitem_to_process; i++)
187187
{
188188
if (pay_cnt < (uint32_t)m_payload_len * 2 + (m_has_crc ? 4 : 0))
189-
{ //only output usefull value (payload and CRC if any)
189+
{ //only output useful value (payload and CRC if any)
190190
nout++;
191191
pay_cnt++;
192192
out[i] = in[i];

lib/kiss_fft.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "_kiss_fft_guts.h"
1111
/* The guts header contains all the multiplication and addition macros that are defined for
12-
fixed or floating point complex numbers. It also delares the kf_ internal functions.
12+
fixed or floating point complex numbers. It also declares the kf_ internal functions.
1313
*/
1414
static void kf_bfly2(
1515
kiss_fft_cpx * Fout,

lib/whitening_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace gr
1818
std::vector<uint8_t> m_payload; ///< store the payload bytes
1919
std::vector<std::string> payload_str; ///< payload as a string
2020
bool m_file_source; ///< indicate that the payload are provided by a file through an input stream
21-
bool m_use_length_tag; ///< wheter to use the length tag to separate frames or the separator character
21+
bool m_use_length_tag; ///< whether to use the length tag to separate frames or the separator character
2222
std::string m_length_tag_name; ///< name/key of the length tag
2323
int m_input_byte_cnt; ///< number of bytes from the input already processed
2424
uint64_t m_tag_offset; ///< offset of the length tag

0 commit comments

Comments
 (0)