Changeset - 0a0719c60fff
[Not reviewed]
default
0 1 0
Ethan Zonca - 8 years ago 2017-10-10 17:59:26
ez@ethanzonca.com
I'm totally a good C programmer... Add semicolons. Reduce drive strength.
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/wspr.c
Show inline comments
 
@@ -147,14 +147,14 @@ void wspr_transmit(uint8_t* grid_locator
 
        // Encode speed in knots from 0-82 to 0-41
 
        uint32_t speed_enc = gps_getdata()->speed / 2;
 
        if(speed_enc > 41)
 
            speed_enc = 41;
 

	
 
        // Encode GPS status
 
        uint32_t gps_status = 0b0 // valid fix
 
        uint32_t gps_sats = 0b0   // lats > 8
 
        uint32_t gps_status = 0b0; // valid fix
 
        uint32_t gps_sats = 0b0;  // lats > 8
 

	
 

	
 
        // We always have a fix if we got to this point; and I think we zero out that we had a fix when turning the GPS off before entering this function
 
//        if(gps_getdata()->fixtype == 2 || gps_getdata()->fixtype == 3)
 
            gps_status = 0b1;
 

	
 
@@ -251,13 +251,14 @@ void wspr_transmit(uint8_t* grid_locator
 
    si5351_init(i2c_get(), SI5351_CRYSTAL_LOAD_8PF, 0);
 
    si5351_set_correction(0);
 
    //si5351_set_pll(SI5351_PLL_FIXED, SI5351_PLLA);
 
    //si5351_set_ms_source(SI5351_CLK0, SI5351_PLLA);
 
    si5351_set_freq(WSPR_DEFAULT_FREQ * 100, 0, SI5351_CLK0);
 
//    si5351_drive_strength(SI5351_CLK0, SI5351_DRIVE_8MA); // Set for max power if desired (8ma max)
 
    si5351_drive_strength(SI5351_CLK0, SI5351_DRIVE_6MA); // Set for max power if desired (8ma max)
 
//    si5351_drive_strength(SI5351_CLK0, SI5351_DRIVE_6MA); // Set for max power if desired (8ma max)
 
    si5351_drive_strength(SI5351_CLK0, SI5351_DRIVE_2MA); // Set for max power if desired (8ma max)
 
    si5351_output_enable(SI5351_CLK0, 1);
 
    //si5351_pll_reset(SI5351_PLLA);
 

	
 
    // Make sure the other outputs of the SI5351 are disabled
 
    si5351_output_enable(SI5351_CLK1, 0); // Disable the clock initially
 
    si5351_output_enable(SI5351_CLK2, 0); // Disable the clock initially
0 comments (0 inline, 0 general)