使用调频后导致发送的连续波频偏,CHANNEL_SPACE 是100K,一个通道偏差2.5k.直接修改基频的频偏很小。
void channel_jump(uint8_t ch_nums)
{
do
{
for (volatile uint8_t i = 0; i != 0xFF; i++);
SpiritRefreshStatus();
}while(g_xStatus.MC_STATE != MC_STATE_READY);
#if 1
SpiritRadioSetChannel(ch_nums);
SpiritManagementWaVcoCalibration();
#else
xRadioInit.cChannelNumber = ch_nums;
xRadioInit.nChannelSpace = 20000;
SpiritRadioInit(&xRadioInit);
#endif
}
|