Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 477635a100 | |||
| 6c7dfbfc89 | |||
| 589611c8bd | |||
| 9a1d6aabe4 | |||
| 25a660138b | |||
| f2886715ce | |||
| defdd57ea3 | |||
| acbb100d64 | |||
| 9b010686b6 | |||
| 9aa2d17753 | |||
| 1ce4c402e0 | |||
| decce5cc17 | |||
| 125aa75553 | |||
| 687b1187d1 | |||
| a467e74a78 | |||
| e889a54e55 | |||
| f501955dfd | |||
| cfd1fe2b18 | |||
| c80ea840d7 | |||
| 6e590d0764 | |||
| 9f72e62db7 | |||
| f3bf8dbd2f | |||
| 739218116d | |||
| bdeab6428b | |||
| 619fa00967 | |||
| 9f0b8852f6 | |||
| e87a088842 | |||
| 4c60aed563 |
@@ -13,7 +13,6 @@
|
|||||||
/sdcard/FREQMAN/BHT*
|
/sdcard/FREQMAN/BHT*
|
||||||
/sdcard/FREQMAN/R.TXT
|
/sdcard/FREQMAN/R.TXT
|
||||||
/sdcard/FREQMAN/XXX.TXT
|
/sdcard/FREQMAN/XXX.TXT
|
||||||
/sdcard/WAV/*
|
|
||||||
|
|
||||||
# Compiled Object files
|
# Compiled Object files
|
||||||
*.slo
|
*.slo
|
||||||
@@ -61,7 +60,6 @@ CMakeFiles/
|
|||||||
*.sublime-project
|
*.sublime-project
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
|
|
||||||
# Host OS turds
|
# Host OS leftovers
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/firmware/CMakeCache.txt
|
/firmware/CMakeCache.txt
|
||||||
/sdcard/ADSB/airlines.txt
|
|
||||||
@@ -14,10 +14,20 @@ COPY ./ /havocsrc
|
|||||||
|
|
||||||
#Fetch dependencies from APT
|
#Fetch dependencies from APT
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y tar wget dfu-util cmake python python-pip && \
|
apt-get install -y tar wget dfu-util cmake python bzip2 curl && \
|
||||||
apt-get -qy autoremove
|
apt-get -qy autoremove
|
||||||
|
|
||||||
|
#Install current pip from PyPa
|
||||||
|
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||||
|
python get-pip.py
|
||||||
|
|
||||||
#Fetch additional dependencies from Python 2.x pip
|
#Fetch additional dependencies from Python 2.x pip
|
||||||
RUN pip install pyyaml
|
RUN pip install pyyaml
|
||||||
|
RUN ln -s /usr/bin/python3 /usr/bin/python && \
|
||||||
|
ln -s /usr/bin/pip3 /usr/bin/pip
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV LC_ALL C.UTF-8
|
||||||
|
|
||||||
#Grab the GNU ARM toolchain from arm.com
|
#Grab the GNU ARM toolchain from arm.com
|
||||||
#Then extract contents to /opt/build/armbin/
|
#Then extract contents to /opt/build/armbin/
|
||||||
|
|||||||
@@ -11,10 +11,20 @@ WORKDIR /havoc/firmware
|
|||||||
|
|
||||||
# Fetch dependencies from APT
|
# Fetch dependencies from APT
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y git tar wget dfu-util cmake python3 python-pip ccache && \
|
apt-get install -y git tar wget dfu-util cmake python3 ccache bzip2 curl && \
|
||||||
apt-get -qy autoremove
|
apt-get -qy autoremove
|
||||||
|
|
||||||
|
#Install current pip from PyPa
|
||||||
|
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||||
|
python3 get-pip.py
|
||||||
|
|
||||||
|
#Fetch additional dependencies from Python 3.x pip
|
||||||
RUN pip install pyyaml
|
RUN pip install pyyaml
|
||||||
|
RUN ln -s /usr/bin/python3 /usr/bin/python && \
|
||||||
|
ln -s /usr/bin/pip3 /usr/bin/pip
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV LC_ALL C.UTF-8
|
||||||
|
|
||||||
# Grab the GNU ARM toolchain from arm.com
|
# Grab the GNU ARM toolchain from arm.com
|
||||||
# Then extract contents to /opt/build/armbin/
|
# Then extract contents to /opt/build/armbin/
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ void GpsSimAppView::on_file_changed(std::filesystem::path new_file_path) {
|
|||||||
auto file_size = data_file.size();
|
auto file_size = data_file.size();
|
||||||
auto duration = (file_size * 1000) / (1 * 2 * sample_rate);
|
auto duration = (file_size * 1000) / (1 * 2 * sample_rate);
|
||||||
|
|
||||||
progressbar.set_max(file_size);
|
progressbar.set_max(file_size / 1024);
|
||||||
text_filename.set(file_path.filename().string().substr(0, 12));
|
text_filename.set(file_path.filename().string().substr(0, 12));
|
||||||
text_duration.set(to_string_time_ms(duration));
|
text_duration.set(to_string_time_ms(duration));
|
||||||
|
|
||||||
|
|||||||
@@ -231,6 +231,7 @@ ReplayAppView::~ReplayAppView() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ReplayAppView::on_hide() {
|
void ReplayAppView::on_hide() {
|
||||||
|
stop(false);
|
||||||
// TODO: Terrible kludge because widget system doesn't notify Waterfall that
|
// TODO: Terrible kludge because widget system doesn't notify Waterfall that
|
||||||
// it's being shown or hidden.
|
// it's being shown or hidden.
|
||||||
waterfall.on_hide();
|
waterfall.on_hide();
|
||||||
|
|||||||
@@ -207,8 +207,8 @@ SoundBoardView::SoundBoardView(
|
|||||||
&menu_view,
|
&menu_view,
|
||||||
&text_empty,
|
&text_empty,
|
||||||
&options_tone_key,
|
&options_tone_key,
|
||||||
&text_title,
|
//&text_title,
|
||||||
&text_duration,
|
//&text_duration,
|
||||||
&progressbar,
|
&progressbar,
|
||||||
&check_loop,
|
&check_loop,
|
||||||
&check_random,
|
&check_random,
|
||||||
@@ -217,7 +217,7 @@ SoundBoardView::SoundBoardView(
|
|||||||
|
|
||||||
refresh_list();
|
refresh_list();
|
||||||
|
|
||||||
text_title.set(to_string_dec_uint(file_list.size()));
|
//text_title.set(to_string_dec_uint(file_list.size()));
|
||||||
|
|
||||||
tone_keys_populate(options_tone_key);
|
tone_keys_populate(options_tone_key);
|
||||||
options_tone_key.set_selected_index(0);
|
options_tone_key.set_selected_index(0);
|
||||||
|
|||||||
@@ -80,12 +80,12 @@ private:
|
|||||||
void on_select_entry();
|
void on_select_entry();
|
||||||
|
|
||||||
Labels labels {
|
Labels labels {
|
||||||
{ { 0, 20 * 8 + 4 }, "Title:", Color::light_grey() },
|
//{ { 0, 20 * 8 + 4 }, "Title:", Color::light_grey() },
|
||||||
{ { 0, 23 * 8 }, "Key:", Color::light_grey() }
|
{ { 0, 180 }, "Key:", Color::light_grey() }
|
||||||
};
|
};
|
||||||
|
|
||||||
MenuView menu_view {
|
MenuView menu_view {
|
||||||
{ 0, 2 * 8, 240, 20 * 8 },
|
{ 0, 0, 240, 175 },
|
||||||
true
|
true
|
||||||
};
|
};
|
||||||
Text text_empty {
|
Text text_empty {
|
||||||
@@ -93,22 +93,22 @@ private:
|
|||||||
"Empty directory !",
|
"Empty directory !",
|
||||||
};
|
};
|
||||||
|
|
||||||
Text text_title {
|
/*Text text_title {
|
||||||
{ 6 * 8, 20 * 8 + 4, 15 * 8, 16 }
|
{ 6 * 8, 20 * 8 + 4, 15 * 8, 16 }
|
||||||
};
|
};*/
|
||||||
|
|
||||||
Text text_duration {
|
/*Text text_duration {
|
||||||
{ 22 * 8, 20 * 8 + 4, 6 * 8, 16 }
|
{ 22 * 8, 20 * 8 + 4, 6 * 8, 16 }
|
||||||
};
|
};*/
|
||||||
|
|
||||||
OptionsField options_tone_key {
|
OptionsField options_tone_key {
|
||||||
{ 4 * 8, 23 * 8 },
|
{ 32 , 180 },
|
||||||
18,
|
18,
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
Checkbox check_loop {
|
Checkbox check_loop {
|
||||||
{ 8, 25 * 8 + 4 },
|
{ 0, 25 * 8 + 4 },
|
||||||
4,
|
4,
|
||||||
"Loop"
|
"Loop"
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ private:
|
|||||||
//uint8_t scan_count;
|
//uint8_t scan_count;
|
||||||
//double scan_progress;
|
//double scan_progress;
|
||||||
//unsigned int scan_index;
|
//unsigned int scan_index;
|
||||||
int16_t waveform_buffer[512];
|
int16_t waveform_buffer[550];
|
||||||
const encoder_def_t * encoder_def { };
|
const encoder_def_t * encoder_def { };
|
||||||
//uint8_t enc_type = 0;
|
//uint8_t enc_type = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
Button button_exit {
|
Button button_exit {
|
||||||
{ 20 * 8, 34 * 8, 10 * 8, 4 * 8 },
|
{ 16 * 8, 34 * 8, 14 * 8, 32 },
|
||||||
"Exit"
|
"Exit"
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -157,11 +157,11 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
Button button_rename {
|
Button button_rename {
|
||||||
{ 0 * 8, 29 * 8, 12 * 8, 32 },
|
{ 0 * 8, 29 * 8, 14 * 8, 32 },
|
||||||
"Rename"
|
"Rename"
|
||||||
};
|
};
|
||||||
Button button_delete {
|
Button button_delete {
|
||||||
{ 18 * 8, 29 * 8, 12 * 8, 32 },
|
{ 16 * 8, 29 * 8, 14 * 8, 32 },
|
||||||
"Delete"
|
"Delete"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -439,9 +439,9 @@ static constexpr uint8_t bitmap_icon_debug_data[] = {
|
|||||||
0xAA, 0x0A,
|
0xAA, 0x0A,
|
||||||
0x52, 0x01,
|
0x52, 0x01,
|
||||||
0xAA, 0x12,
|
0xAA, 0x12,
|
||||||
0x02, 0x18,
|
0x02, 0x08,
|
||||||
0x02, 0xFC,
|
0x02, 0xFC,
|
||||||
0x02, 0x18,
|
0x02, 0x08,
|
||||||
0xFE, 0x13,
|
0xFE, 0x13,
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
};
|
};
|
||||||
@@ -451,20 +451,20 @@ static constexpr Bitmap bitmap_icon_debug {
|
|||||||
|
|
||||||
static constexpr uint8_t bitmap_icon_dir_data[] = {
|
static constexpr uint8_t bitmap_icon_dir_data[] = {
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
0xFC, 0x00,
|
0x3E, 0x00,
|
||||||
0x02, 0x01,
|
0x41, 0x00,
|
||||||
0x01, 0x3E,
|
0xC1, 0x7F,
|
||||||
0x01, 0xE0,
|
0xFF, 0xFF,
|
||||||
0x01, 0xA0,
|
0xFF, 0xFF,
|
||||||
0x01, 0xA0,
|
0xFF, 0xFF,
|
||||||
0x01, 0xA0,
|
0xFF, 0xFF,
|
||||||
0x01, 0xA0,
|
0xFF, 0xFF,
|
||||||
0x02, 0x40,
|
0xFF, 0xFF,
|
||||||
0x02, 0x40,
|
0xAF, 0xEA,
|
||||||
0x02, 0x40,
|
0x57, 0xF5,
|
||||||
0x02, 0x40,
|
0xEF, 0xEF,
|
||||||
0x02, 0x40,
|
0xF7, 0xF7,
|
||||||
0xFC, 0x3F,
|
0xEE, 0x6F,
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_icon_dir {
|
static constexpr Bitmap bitmap_icon_dir {
|
||||||
@@ -560,22 +560,22 @@ static constexpr Bitmap bitmap_icon_file_image {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static constexpr uint8_t bitmap_icon_file_iq_data[] = {
|
static constexpr uint8_t bitmap_icon_file_iq_data[] = {
|
||||||
0x98, 0x00,
|
0xFC, 0x03,
|
||||||
0x24, 0x06,
|
0x04, 0x06,
|
||||||
0xA4, 0x08,
|
0x04, 0x0E,
|
||||||
0x34, 0x10,
|
0x04, 0x1E,
|
||||||
0xB8, 0x20,
|
0x04, 0x3E,
|
||||||
0x20, 0x20,
|
|
||||||
0x80, 0x00,
|
|
||||||
0xD5, 0x55,
|
|
||||||
0x80, 0x00,
|
|
||||||
0x02, 0x70,
|
|
||||||
0x82, 0x20,
|
|
||||||
0x04, 0x20,
|
0x04, 0x20,
|
||||||
0x88, 0x20,
|
0x04, 0x20,
|
||||||
0x30, 0x70,
|
0x04, 0x21,
|
||||||
0x80, 0x00,
|
0x44, 0x25,
|
||||||
0x00, 0x00,
|
0x54, 0x25,
|
||||||
|
0xF4, 0x2F,
|
||||||
|
0xA4, 0x2A,
|
||||||
|
0x84, 0x22,
|
||||||
|
0x04, 0x22,
|
||||||
|
0x04, 0x20,
|
||||||
|
0xFC, 0x3F,
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_icon_file_iq {
|
static constexpr Bitmap bitmap_icon_file_iq {
|
||||||
{ 16, 16 }, bitmap_icon_file_iq_data
|
{ 16, 16 }, bitmap_icon_file_iq_data
|
||||||
@@ -627,20 +627,20 @@ static constexpr Bitmap bitmap_icon_fox {
|
|||||||
|
|
||||||
static constexpr uint8_t bitmap_icon_freqman_data[] = {
|
static constexpr uint8_t bitmap_icon_freqman_data[] = {
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
0x0E, 0x00,
|
|
||||||
0x02, 0x00,
|
|
||||||
0xE6, 0x7F,
|
|
||||||
0x02, 0x00,
|
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
0x0E, 0x00,
|
|
||||||
0x02, 0x00,
|
|
||||||
0xE6, 0x7B,
|
|
||||||
0x02, 0x00,
|
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
0x0E, 0x00,
|
0x7E, 0x7E,
|
||||||
0x02, 0x00,
|
0x81, 0x81,
|
||||||
0x66, 0x7F,
|
0xBD, 0xBD,
|
||||||
0x02, 0x00,
|
0x81, 0x81,
|
||||||
|
0xBD, 0xBD,
|
||||||
|
0x81, 0x81,
|
||||||
|
0xBD, 0x9D,
|
||||||
|
0x81, 0x81,
|
||||||
|
0xBD, 0xE1,
|
||||||
|
0x81, 0x61,
|
||||||
|
0x7E, 0x3E,
|
||||||
|
0x00, 0x00,
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_icon_freqman {
|
static constexpr Bitmap bitmap_icon_freqman {
|
||||||
@@ -692,22 +692,22 @@ static constexpr Bitmap bitmap_icon_hackrf {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static constexpr uint8_t bitmap_icon_jammer_data[] = {
|
static constexpr uint8_t bitmap_icon_jammer_data[] = {
|
||||||
0xA6, 0xAC,
|
0xE0, 0x07,
|
||||||
0x73, 0x47,
|
0xF8, 0x1F,
|
||||||
0xAE, 0xB9,
|
0x1C, 0x38,
|
||||||
0x55, 0xD7,
|
0x0E, 0x78,
|
||||||
0x7E, 0xAE,
|
0x06, 0x7C,
|
||||||
0xD3, 0x45,
|
0x03, 0xCE,
|
||||||
0xCA, 0xBA,
|
0x03, 0xC7,
|
||||||
0x71, 0x15,
|
0x83, 0xC3,
|
||||||
0xDA, 0xFE,
|
0xC3, 0xC1,
|
||||||
0xF5, 0xAB,
|
0xE3, 0xC0,
|
||||||
0xAF, 0x98,
|
0x73, 0xC0,
|
||||||
0x4A, 0x77,
|
0x3E, 0x60,
|
||||||
0xAD, 0xCA,
|
0x1E, 0x70,
|
||||||
0x58, 0x7D,
|
0x1C, 0x38,
|
||||||
0xBF, 0xAF,
|
0xF8, 0x1F,
|
||||||
0x5A, 0x65,
|
0xE0, 0x07,
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_icon_jammer {
|
static constexpr Bitmap bitmap_icon_jammer {
|
||||||
{ 16, 16 }, bitmap_icon_jammer_data
|
{ 16, 16 }, bitmap_icon_jammer_data
|
||||||
@@ -1008,8 +1008,8 @@ static constexpr uint8_t bitmap_icon_receivers_data[] = {
|
|||||||
0x80, 0x01,
|
0x80, 0x01,
|
||||||
0x80, 0x01,
|
0x80, 0x01,
|
||||||
0x80, 0x01,
|
0x80, 0x01,
|
||||||
0xF8, 0x1F,
|
0x98, 0x19,
|
||||||
0xF0, 0x0F,
|
0xB0, 0x0D,
|
||||||
0xE0, 0x07,
|
0xE0, 0x07,
|
||||||
0xC0, 0x03,
|
0xC0, 0x03,
|
||||||
0x83, 0xC1,
|
0x83, 0xC1,
|
||||||
@@ -1074,10 +1074,10 @@ static constexpr uint8_t bitmap_icon_scanner_data[] = {
|
|||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
0x03, 0x01,
|
0x03, 0x01,
|
||||||
0x80, 0x01,
|
0x80, 0x01,
|
||||||
0xC3, 0x01,
|
0xC3, 0x00,
|
||||||
0xE0, 0xFF,
|
0xE0, 0xFF,
|
||||||
0xEF, 0xFF,
|
0xEF, 0xFF,
|
||||||
0xC0, 0x01,
|
0xC0, 0x00,
|
||||||
0x83, 0x01,
|
0x83, 0x01,
|
||||||
0x00, 0x01,
|
0x00, 0x01,
|
||||||
0x03, 0x00,
|
0x03, 0x00,
|
||||||
@@ -1198,44 +1198,44 @@ static constexpr Bitmap bitmap_icon_sleep {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static constexpr uint8_t bitmap_icon_sonde_data[] = {
|
static constexpr uint8_t bitmap_icon_sonde_data[] = {
|
||||||
0xE0, 0x03,
|
0x80, 0x03,
|
||||||
0x90, 0x07,
|
0xE0, 0x0F,
|
||||||
0xE8, 0x0F,
|
0xE0, 0x0F,
|
||||||
0xF8, 0x0F,
|
0xF0, 0x1F,
|
||||||
0xF8, 0x0F,
|
0xF0, 0x1F,
|
||||||
0xF0, 0x07,
|
0xF0, 0x1F,
|
||||||
0xF0, 0x07,
|
0xE0, 0x0F,
|
||||||
0xE0, 0x03,
|
0xE0, 0x0F,
|
||||||
0xE0, 0x03,
|
0x00, 0x00,
|
||||||
0xC0, 0x01,
|
0x20, 0x09,
|
||||||
0xC0, 0x01,
|
0x00, 0x00,
|
||||||
0x80, 0x00,
|
0x40, 0x05,
|
||||||
0x80, 0x00,
|
0x00, 0x00,
|
||||||
0x80, 0x02,
|
0xC0, 0x07,
|
||||||
0xC0, 0x01,
|
0xC0, 0x07,
|
||||||
0xC0, 0x01,
|
0xC0, 0x07,
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_icon_sonde {
|
static constexpr Bitmap bitmap_icon_sonde {
|
||||||
{ 16, 16 }, bitmap_icon_sonde_data
|
{ 16, 16 }, bitmap_icon_sonde_data
|
||||||
};
|
};
|
||||||
|
|
||||||
static constexpr uint8_t bitmap_icon_soundboard_data[] = {
|
static constexpr uint8_t bitmap_icon_soundboard_data[] = {
|
||||||
|
0xFF, 0xAA,
|
||||||
|
0x81, 0x00,
|
||||||
|
0xA1, 0x42,
|
||||||
|
0xB1, 0x20,
|
||||||
|
0xBD, 0x52,
|
||||||
|
0xBD, 0x28,
|
||||||
|
0xBD, 0x52,
|
||||||
|
0xB1, 0x20,
|
||||||
|
0xA1, 0x42,
|
||||||
|
0x81, 0x00,
|
||||||
|
0xFF, 0xAA,
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
0xFF, 0xFF,
|
0xAA, 0xAA,
|
||||||
0x63, 0x8C,
|
0x01, 0x00,
|
||||||
0x21, 0x84,
|
0xA0, 0x42,
|
||||||
0x21, 0x84,
|
0x11, 0x20,
|
||||||
0xDF, 0xFB,
|
|
||||||
0x63, 0x8C,
|
|
||||||
0x21, 0x84,
|
|
||||||
0x21, 0x84,
|
|
||||||
0xDF, 0xFB,
|
|
||||||
0x63, 0x8C,
|
|
||||||
0x21, 0x84,
|
|
||||||
0x21, 0x84,
|
|
||||||
0xFF, 0xFF,
|
|
||||||
0x00, 0x00,
|
|
||||||
0x00, 0x00,
|
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_icon_soundboard {
|
static constexpr Bitmap bitmap_icon_soundboard {
|
||||||
{ 16, 16 }, bitmap_icon_soundboard_data
|
{ 16, 16 }, bitmap_icon_soundboard_data
|
||||||
@@ -1264,22 +1264,22 @@ static constexpr Bitmap bitmap_icon_speaker {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static constexpr uint8_t bitmap_icon_sstv_data[] = {
|
static constexpr uint8_t bitmap_icon_sstv_data[] = {
|
||||||
0x10, 0x08,
|
0x00, 0x00,
|
||||||
0x20, 0x04,
|
0x00, 0x00,
|
||||||
0x40, 0x02,
|
0xFE, 0x7F,
|
||||||
0x80, 0x01,
|
0x03, 0xC0,
|
||||||
0xFF, 0xFF,
|
0x53, 0xD5,
|
||||||
0x03, 0xF8,
|
0xAB, 0xCA,
|
||||||
0x5D, 0xF0,
|
0x53, 0xD5,
|
||||||
0x05, 0xD0,
|
0xAB, 0xCA,
|
||||||
0x01, 0xF0,
|
0x53, 0xD5,
|
||||||
0x01, 0xD0,
|
0xAB, 0xCA,
|
||||||
0x01, 0xF0,
|
0x53, 0xD5,
|
||||||
0x01, 0xD0,
|
0x03, 0xC0,
|
||||||
0x01, 0xF0,
|
|
||||||
0x01, 0x90,
|
|
||||||
0x03, 0x98,
|
|
||||||
0xFF, 0xFF,
|
0xFF, 0xFF,
|
||||||
|
0xFB, 0xD7,
|
||||||
|
0xFE, 0x7F,
|
||||||
|
0x00, 0x00,
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_icon_sstv {
|
static constexpr Bitmap bitmap_icon_sstv {
|
||||||
{ 16, 16 }, bitmap_icon_sstv_data
|
{ 16, 16 }, bitmap_icon_sstv_data
|
||||||
@@ -1355,8 +1355,8 @@ static constexpr uint8_t bitmap_icon_transmit_data[] = {
|
|||||||
0x80, 0x01,
|
0x80, 0x01,
|
||||||
0xC0, 0x03,
|
0xC0, 0x03,
|
||||||
0xE0, 0x07,
|
0xE0, 0x07,
|
||||||
0xF0, 0x0F,
|
0xB0, 0x0D,
|
||||||
0xF8, 0x1F,
|
0x98, 0x19,
|
||||||
0x80, 0x01,
|
0x80, 0x01,
|
||||||
0x80, 0x01,
|
0x80, 0x01,
|
||||||
0x80, 0x01,
|
0x80, 0x01,
|
||||||
@@ -1396,14 +1396,14 @@ static constexpr Bitmap bitmap_icon_utilities {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static constexpr uint8_t bitmap_more_data[] = {
|
static constexpr uint8_t bitmap_more_data[] = {
|
||||||
0x18,
|
0x10,
|
||||||
0x18,
|
0x10,
|
||||||
0x18,
|
0x10,
|
||||||
0x18,
|
0x10,
|
||||||
0xFF,
|
0x54,
|
||||||
0x7E,
|
0x38,
|
||||||
0x3C,
|
0x10,
|
||||||
0x18,
|
0x00,
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_more {
|
static constexpr Bitmap bitmap_more {
|
||||||
{ 8, 8 }, bitmap_more_data
|
{ 8, 8 }, bitmap_more_data
|
||||||
@@ -1432,22 +1432,22 @@ static constexpr Bitmap bitmap_play {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static constexpr uint8_t bitmap_record_data[] = {
|
static constexpr uint8_t bitmap_record_data[] = {
|
||||||
0xE0, 0x07,
|
0xC0, 0x07,
|
||||||
0xF8, 0x1F,
|
0xF0, 0x1F,
|
||||||
0xFC, 0x3F,
|
0xF8, 0x3F,
|
||||||
0xFE, 0x7F,
|
0xFC, 0x7F,
|
||||||
0xFE, 0x7F,
|
0xFC, 0x7F,
|
||||||
0xFF, 0xFF,
|
0x66, 0xCC,
|
||||||
0xFF, 0xFF,
|
0x56, 0xF7,
|
||||||
0xFF, 0xFF,
|
0x66, 0xF6,
|
||||||
0xFF, 0xFF,
|
0x56, 0xF7,
|
||||||
0xFF, 0xFF,
|
0x56, 0xCC,
|
||||||
0xFF, 0xFF,
|
0xFC, 0x7F,
|
||||||
0xFE, 0x7F,
|
0xFC, 0x7F,
|
||||||
0xFE, 0x7F,
|
0xF8, 0x3F,
|
||||||
0xFC, 0x3F,
|
0xF0, 0x1F,
|
||||||
0xF8, 0x1F,
|
0xC0, 0x07,
|
||||||
0xE0, 0x07,
|
0x00, 0x00,
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_record {
|
static constexpr Bitmap bitmap_record {
|
||||||
{ 16, 16 }, bitmap_record_data
|
{ 16, 16 }, bitmap_record_data
|
||||||
@@ -1808,21 +1808,21 @@ static constexpr Bitmap bitmap_sig_tri {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static constexpr uint8_t bitmap_stop_data[] = {
|
static constexpr uint8_t bitmap_stop_data[] = {
|
||||||
0x00, 0x00,
|
0xFF, 0xFF,
|
||||||
0x00, 0x00,
|
0xFF, 0xFF,
|
||||||
0xFC, 0x3F,
|
0xFF, 0xFF,
|
||||||
0xFC, 0x3F,
|
0xFF, 0xFF,
|
||||||
0xFC, 0x3F,
|
0xFF, 0xFF,
|
||||||
0xFC, 0x3F,
|
0x8B, 0xCD,
|
||||||
0xFC, 0x3F,
|
0xDD, 0xAA,
|
||||||
0xFC, 0x3F,
|
0xDB, 0xCA,
|
||||||
0xFC, 0x3F,
|
0xDB, 0xEA,
|
||||||
0xFC, 0x3F,
|
0xDD, 0xED,
|
||||||
0xFC, 0x3F,
|
0xFF, 0xFF,
|
||||||
0xFC, 0x3F,
|
0xFF, 0xFF,
|
||||||
0xFC, 0x3F,
|
0xFF, 0xFF,
|
||||||
0xFC, 0x3F,
|
0xFF, 0xFF,
|
||||||
0x00, 0x00,
|
0xFF, 0xFF,
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
};
|
};
|
||||||
static constexpr Bitmap bitmap_stop {
|
static constexpr Bitmap bitmap_stop {
|
||||||
|
|||||||
@@ -247,8 +247,6 @@ public:
|
|||||||
parent_pos,
|
parent_pos,
|
||||||
5,
|
5,
|
||||||
{
|
{
|
||||||
{ " 1 ", 1 },
|
|
||||||
{ " 10 ", 10 },
|
|
||||||
{ " 100", 100 },
|
{ " 100", 100 },
|
||||||
{ " 1k ", 1000 },
|
{ " 1k ", 1000 },
|
||||||
{ " 3k ", 3000 }, /* Approximate SSB bandwidth */
|
{ " 3k ", 3000 }, /* Approximate SSB bandwidth */
|
||||||
|
|||||||
@@ -54,8 +54,6 @@ enum modal_t {
|
|||||||
ABORT
|
ABORT
|
||||||
};
|
};
|
||||||
|
|
||||||
//#define VERSION_STRING "v1.0.0"; // TODO: Move somewhere else
|
|
||||||
|
|
||||||
class NavigationView : public View {
|
class NavigationView : public View {
|
||||||
public:
|
public:
|
||||||
std::function<void(const View&)> on_view_changed { };
|
std::function<void(const View&)> on_view_changed { };
|
||||||
@@ -111,7 +109,7 @@ public:
|
|||||||
void set_title(const std::string new_value);
|
void set_title(const std::string new_value);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr auto default_title = "MAYHEM v1.0.0"; // TODO: Move the version somewhere
|
static constexpr auto default_title = "MAYHEM v1.0.3"; // TODO: Move the version somewhere
|
||||||
|
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
|
||||||
|
|||||||
@@ -201,6 +201,11 @@ void RecordView::start() {
|
|||||||
update_status_display();
|
update_status_display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RecordView::on_hide() {
|
||||||
|
stop(); // Stop current recording
|
||||||
|
View::on_hide();
|
||||||
|
}
|
||||||
|
|
||||||
void RecordView::stop() {
|
void RecordView::stop() {
|
||||||
if( is_active() ) {
|
if( is_active() ) {
|
||||||
capture_thread.reset();
|
capture_thread.reset();
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ public:
|
|||||||
|
|
||||||
void start();
|
void start();
|
||||||
void stop();
|
void stop();
|
||||||
|
void on_hide() override;
|
||||||
|
|
||||||
bool is_active() const;
|
bool is_active() const;
|
||||||
|
|
||||||
|
|||||||
@@ -58,34 +58,18 @@ void ReplayProcessor::execute(const buffer_c8_t& buffer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fill and "stretch"
|
// Fill and "stretch"
|
||||||
for (size_t i = 0; i < buffer.count; i++) {
|
for (size_t i = 0; i < buffer.count; i++) {
|
||||||
/*if (i & 3) {
|
auto re_out = iq_buffer.p[i].real() ;
|
||||||
buffer.p[i] = buffer.p[i - 1];
|
auto im_out = iq_buffer.p[i].imag() ;
|
||||||
} else {
|
|
||||||
auto re_out = iq_buffer.p[i >> 3].real() ;
|
|
||||||
auto im_out = iq_buffer.p[i >> 3].imag() ;
|
|
||||||
buffer.p[i] = { (int8_t)re_out, (int8_t)im_out };
|
|
||||||
}*/
|
|
||||||
/*
|
|
||||||
if (i % 8 != 0) {
|
|
||||||
buffer.p[i] = buffer.p[i - 1];
|
|
||||||
} else {
|
|
||||||
auto re_out = iq_buffer.p[i/8].real() ;
|
|
||||||
auto im_out = iq_buffer.p[i/8].imag() ;
|
|
||||||
buffer.p[i] = { (int8_t)re_out, (int8_t)im_out };
|
|
||||||
}*/
|
|
||||||
|
|
||||||
auto re_out = iq_buffer.p[i].real() ;
|
|
||||||
auto im_out = iq_buffer.p[i].imag() ;
|
|
||||||
buffer.p[i] = { (int8_t)re_out, (int8_t)im_out };
|
buffer.p[i] = { (int8_t)re_out, (int8_t)im_out };
|
||||||
}
|
}
|
||||||
|
|
||||||
spectrum_samples += buffer.count;
|
spectrum_samples += buffer.count;
|
||||||
if( spectrum_samples >= spectrum_interval_samples ) {
|
if( spectrum_samples >= spectrum_interval_samples ) {
|
||||||
spectrum_samples -= spectrum_interval_samples;
|
spectrum_samples -= spectrum_interval_samples;
|
||||||
//channel_spectrum.feed(iq_buffer, channel_filter_pass_f, channel_filter_stop_f);
|
|
||||||
|
txprogress_message.progress = bytes_read / 1024; // Inform UI about progress
|
||||||
txprogress_message.progress = bytes_read; // Inform UI about progress
|
|
||||||
txprogress_message.done = false;
|
txprogress_message.done = false;
|
||||||
shared_memory.application_queue.push(txprogress_message);
|
shared_memory.application_queue.push(txprogress_message);
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 171 B |
|
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 156 B |
|
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 168 B |
|
Before Width: | Height: | Size: 103 B After Width: | Height: | Size: 144 B |
|
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 177 B |
|
Before Width: | Height: | Size: 141 B After Width: | Height: | Size: 147 B |
|
Before Width: | Height: | Size: 151 B After Width: | Height: | Size: 153 B |
|
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 150 B |
|
Before Width: | Height: | Size: 115 B After Width: | Height: | Size: 183 B |
|
Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 150 B |
|
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 151 B |
|
Before Width: | Height: | Size: 93 B After Width: | Height: | Size: 102 B |
|
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 178 B |
|
Before Width: | Height: | Size: 87 B After Width: | Height: | Size: 146 B |
@@ -112,4 +112,4 @@ f.write("\n")
|
|||||||
f.write("} /* namespace ui */\n\n")
|
f.write("} /* namespace ui */\n\n")
|
||||||
f.write("#endif/*__BITMAP_HPP__*/\n")
|
f.write("#endif/*__BITMAP_HPP__*/\n")
|
||||||
|
|
||||||
print "Converted " + str(count) + " files"
|
print("Converted " + str(count) + " files")
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://github.com/furrtek/portapack-havoc/issues/326
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://github.com/eried/portapack-havoc/wiki/GPS-Sim
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# How to generate world_map.bin
|
|
||||||
|
|
||||||
World_map.bin is required if you want to use the world map view in some apps. It's a huge (~450MB) raw image file in a format that can be easily rendered by the PortaPack.
|
|
||||||
|
|
||||||
Since Github doesn't allow uploading such large files, you must generate it yourself from the provided jpg file.
|
|
||||||
|
|
||||||
1. Make sure that `world_map.jpg` is in `/sdcard/ADSB`.
|
|
||||||
1. Go in `/firmware/tools`.
|
|
||||||
1. Run 'python adsb_map.py'. Give it some time.
|
|
||||||
1. `world_map.bin` should appear ! Leave it in the ADSB directory.
|
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
[InternetShortcut]
|
||||||
|
URL=https://twitter.com/caj380/status/1264586260187959296
|
||||||
|
Before Width: | Height: | Size: 28 MiB |