Fix sin/cos
This commit is contained in:
parent
c9da22afec
commit
06695041ba
|
@ -64,8 +64,8 @@ static int8_t origin_acc = 0;
|
|||
#define NCO_NUM_PHASES 256
|
||||
#define NCO_PHASE_BITS 8
|
||||
#define NCO_PHASE_WORDS (1 << (NCO_PHASE_BITS - 2))
|
||||
#define NCO_PHASE_COS (3u << 30)
|
||||
#define NCO_PHASE_SIN 0
|
||||
#define NCO_PHASE_COS 0
|
||||
#define NCO_PHASE_SIN (3u << 30)
|
||||
|
||||
static uint32_t nco_phase[NCO_NUM_PHASES][NCO_PHASE_WORDS]
|
||||
__attribute__((__aligned__(NCO_NUM_PHASES * 4 * NCO_PHASE_WORDS)));
|
||||
|
@ -75,7 +75,7 @@ static uint32_t nco_step = 0x80000000;
|
|||
static uint32_t nco_null = 0;
|
||||
|
||||
/* Bit combinations to output for { I+ Q+ I- Q- } */
|
||||
static const uint32_t nco_quadrature[] = { 2, 3, 1, 0 };
|
||||
static const uint32_t nco_quadrature[] = { 3, 2, 0, 1 };
|
||||
|
||||
/* Sampling and gain */
|
||||
#define INIT_SAMPLE_RATE 200000
|
||||
|
|
Loading…
Reference in a new issue