Skip to content

Commit

Permalink
more xbee joint code
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Shipman committed Nov 14, 2023
1 parent bedfafc commit b9753f5
Show file tree
Hide file tree
Showing 28 changed files with 34,297 additions and 34,550 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 9 additions & 9 deletions Code/BITS/BITSv5/test/SX1262.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void set_radio_rf_freq() {
}

void set_tx_params() {
const uint8_t power = 0x01;
const uint8_t power = 0x16;
const uint8_t ramp_time = 0x04;

gpio_put(CS_PIN, 0);
Expand Down Expand Up @@ -269,9 +269,9 @@ void write_radio_buffer() {
}

void set_radio_modulation_param() {
const uint8_t spreading_factor = 0x0B;
const uint8_t spreading_factor = 0x07;
const uint8_t bandwidth = 0x04;
const uint8_t coding_rate = 0x01;
const uint8_t coding_rate = 0x04;
const uint8_t low_data_rate = 0x01;

gpio_put(CS_PIN, 0);
Expand All @@ -284,12 +284,12 @@ void set_radio_modulation_param() {
}

void set_packet_parameters() {
const uint8_t preamble2 = 0;
const uint8_t preamble1 = 8;
const uint8_t header = 0;
const uint8_t length = 1;
const uint8_t crc = 1;
const uint8_t iq = 0;
const uint8_t preamble2 = 0x00;
const uint8_t preamble1 = 0x08;
const uint8_t header = 0x01;
const uint8_t length = 0x01;
const uint8_t crc = 0x00;
const uint8_t iq = 0x00;

printf("Setting Packet Parameters\n");

Expand Down
Binary file modified Code/BITS/BITSv5/test/build/CMakeFiles/test.dir/SX1262.cpp.obj
Binary file not shown.
Binary file modified Code/BITS/BITSv5/test/build/CMakeFiles/test.dir/test.cpp.obj
Binary file not shown.
Binary file modified Code/BITS/BITSv5/test/build/test.bin
Binary file not shown.
Loading

0 comments on commit b9753f5

Please sign in to comment.