From 8a5bcc242ba73f600e4adeccaa276f53ffa5fcf5 Mon Sep 17 00:00:00 2001 From: ligenxxxx <59721724+ligenxxxx@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:44:03 +0800 Subject: [PATCH] update table_power default value --- src/dm6300.c | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/dm6300.c b/src/dm6300.c index 3901904..d162790 100644 --- a/src/dm6300.c +++ b/src/dm6300.c @@ -24,7 +24,34 @@ uint32_t dcoc_qh = 0x075F0000; uint8_t dm6300_init_done = 0; uint8_t dm6300_lost = 0; -#if defined HDZERO_FREESTYLE_V1 || HDZERO_FREESTYLE_V2 +#if defined HDZERO_FREESTYLE_V1 +uint8_t table_power[FREQ_NUM_EXTERNAL][POWER_MAX + 1] = { + // race band + {0x70, 0x68, 0x5c, 0x60}, + {0x70, 0x68, 0x5c, 0x60}, + {0x70, 0x68, 0x60, 0x60}, + {0x72, 0x6d, 0x60, 0x60}, + {0x74, 0x70, 0x62, 0x5c}, + {0x78, 0x74, 0x64, 0x5b}, + {0x7a, 0x77, 0x64, 0x5b}, + {0x7a, 0x77, 0x64, 0x5b}, + // e band + {0x70, 0x68, 0x5c, 0x60}, // E1 + // fatshark band + {0x70, 0x68, 0x60, 0x60}, // F1 + {0x72, 0x6d, 0x60, 0x60}, // F2 + {0x74, 0x70, 0x62, 0x5c}, // F4 + // low band + {0x70, 0x68, 0x5c, 0x60}, + {0x70, 0x68, 0x5c, 0x60}, + {0x70, 0x68, 0x5c, 0x60}, + {0x70, 0x68, 0x5c, 0x60}, + {0x70, 0x68, 0x5c, 0x60}, + {0x70, 0x68, 0x5c, 0x60}, + {0x70, 0x68, 0x5c, 0x60}, + {0x70, 0x68, 0x5c, 0x60}, +}; +#elif defined HDZERO_FREESTYLE_V2 uint8_t table_power[FREQ_NUM_EXTERNAL][POWER_MAX + 1] = { // race band {0x30, 0x50, 0x50, 0x58},