Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/io/vtx_smartaudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
#define VTX_SMARTAUDIO_DEFAULT_POWER_COUNT 4
#define VTX_SMARTAUDIO_DEFAULT_POWER 1

#define VTX_SMARTAUDIO_MIN_FREQUENCY_MHZ 5000 //min freq in MHz
#define VTX_SMARTAUDIO_MAX_FREQUENCY_MHZ 5999 //max freq in MHz
#define VTX_SMARTAUDIO_MIN_FREQUENCY_MHZ 1000 //min freq in MHz
#define VTX_SMARTAUDIO_MAX_FREQUENCY_MHZ 8000 //max freq in MHz
Comment on lines +40 to +41
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Keep VTX_SMARTAUDIO_* frequency limits aligned with the SmartAudio band/spec expectations, and introduce separate *_CUSTOM_* (or config-layer) bounds for the expanded range to avoid inconsistent behavior across modules that assume 5.8GHz-only limits. [Learned best practice, importance: 6]

Suggested change
#define VTX_SMARTAUDIO_MIN_FREQUENCY_MHZ 1000 //min freq in MHz
#define VTX_SMARTAUDIO_MAX_FREQUENCY_MHZ 8000 //max freq in MHz
#define VTX_SMARTAUDIO_MIN_FREQUENCY_MHZ 5000 // SmartAudio spec min freq in MHz
#define VTX_SMARTAUDIO_MAX_FREQUENCY_MHZ 5999 // SmartAudio spec max freq in MHz
#define VTX_SMARTAUDIO_CUSTOM_MIN_FREQUENCY_MHZ 1000 // custom/config min freq in MHz
#define VTX_SMARTAUDIO_CUSTOM_MAX_FREQUENCY_MHZ 8000 // custom/config max freq in MHz


// opmode flags, GET side
#define SA_MODE_GET_FREQ_BY_FREQ 1
Expand Down