# HG changeset patch # User Mychaela Falconia # Date 1542441521 0 # Node ID e48cc313ea3120af6db71e351c8d9a415c09ed65 # Parent 2f880890c189a0af9f99a7737c39a6dafddadfd3 l1_rf12.h AFC params for FC/OM targets: put in numbers for our VCXO diff -r 2f880890c189 -r e48cc313ea31 src/cs/layer1/cust0/l1_rf12.h --- a/src/cs/layer1/cust0/l1_rf12.h Wed Nov 07 04:28:53 2018 +0000 +++ b/src/cs/layer1/cust0/l1_rf12.h Sat Nov 17 07:58:41 2018 +0000 @@ -261,6 +261,21 @@ #define C_Psi_st_32 492713L // F0.32 #define C_Psi_st_inv 8717L // (1/C_Psi_st) +#elif defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_FCFAM) + +/* + * We calibrate our VCXO per unit following OM's precedent, + * thus the compiled-in AFC params don't really matter on FC/OM targets, + * but let's put in some numbers that are representative of our VCXO, + * as opposed to the totally wrong numbers corresponding to the + * significantly different VCXO on the original Leonardo. + */ + +#define C_Psi_sta_inv 3462L // (1/C_Psi_sta) +#define C_Psi_st 15L // C_Psi_sta * 0.8 F0.16 +#define C_Psi_st_32 992326L // F0.32 +#define C_Psi_st_inv 4328L // (1/C_Psi_st) + #else /* original TCS211 values */