changing default power levels of all examples

This commit is contained in:
morgan 2016-01-04 19:36:37 -08:00
parent c107df93dd
commit 9111ba5301
6 changed files with 9 additions and 7 deletions

View File

@ -279,6 +279,7 @@ void HamShield::initialize() {
//setVolume2(0xF); //setVolume2(0xF);
setModeReceive(); setModeReceive();
setTxSourceMic(); setTxSourceMic();
setRfPower(0);
setSQLoThresh(80); setSQLoThresh(80);
setSQOn(); setSQOn();
} }
@ -436,9 +437,10 @@ void HamShield::setTX(bool on_noff){
if((radio_frequency >= 400000) && (radio_frequency <= 520000)) { if((radio_frequency >= 400000) && (radio_frequency <= 520000)) {
setTxBand70cm(); setTxBand70cm();
} }
delay(50); // delay required by AU1846
} }
delay(10); // delay required by AU1846
I2Cdev::writeBitW(devAddr, A1846S_CTL_REG, A1846S_TX_MODE_BIT, on_noff); I2Cdev::writeBitW(devAddr, A1846S_CTL_REG, A1846S_TX_MODE_BIT, on_noff);
} }
bool HamShield::getTX(){ bool HamShield::getTX(){
@ -455,9 +457,9 @@ void HamShield::setRX(bool on_noff){
setGpioLow(4); // V1 setGpioLow(4); // V1
setGpioLow(5); // V2 setGpioLow(5); // V2
delay(50); // delay required by AU1846
} }
delay(10); // delay required by AU1846
I2Cdev::writeBitW(devAddr, A1846S_CTL_REG, A1846S_RX_MODE_BIT, on_noff); I2Cdev::writeBitW(devAddr, A1846S_CTL_REG, A1846S_RX_MODE_BIT, on_noff);
} }
bool HamShield::getRX(){ bool HamShield::getRX(){

View File

@ -44,7 +44,7 @@ void setup() {
radio.initialize(); radio.initialize();
radio.frequency(144390); radio.frequency(144390);
radio.setRfPower(8); radio.setRfPower(0);
dds.start(); dds.start();
radio.afsk.start(&dds); radio.afsk.start(&dds);
delay(100); delay(100);

View File

@ -40,7 +40,7 @@ void setup() {
Wire.begin(); Wire.begin();
radio.initialize(); radio.initialize();
radio.frequency(145570); radio.frequency(145570);
radio.setRfPower(15); radio.setRfPower(0);
dds.start(); dds.start();
radio.afsk.start(&dds); radio.afsk.start(&dds);
delay(100); delay(100);

View File

@ -45,7 +45,7 @@ void setup() {
// Tell the HamShield to start up // Tell the HamShield to start up
radio.initialize(); radio.initialize();
radio.setRfPower(8); radio.setRfPower(0);
// Configure the HamShield to transmit and recieve on 446.000MHz // Configure the HamShield to transmit and recieve on 446.000MHz
radio.frequency(145570); radio.frequency(145570);

View File

@ -29,7 +29,7 @@ void setup() {
Serial.println(result,DEC); Serial.println(result,DEC);
Serial.println("Setting radio to its defaults.."); Serial.println("Setting radio to its defaults..");
radio.initialize(); radio.initialize();
radio.setRfPower(15); radio.setRfPower(0);
radio.setChanMode(3); radio.setChanMode(3);
} }

View File

@ -97,7 +97,7 @@ void setup() {
radio.setVolume2(0xF); radio.setVolume2(0xF);
radio.setModeReceive(); radio.setModeReceive();
radio.setTxSourceMic(); radio.setTxSourceMic();
radio.setRfPower(9); radio.setRfPower(0);
radio.setSQLoThresh(80); radio.setSQLoThresh(80);
radio.setSQOn(); radio.setSQOn();
} }