Skip to content

Commit

Permalink
telmetry port init function added
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-ortega committed May 6, 2017
1 parent 29acc00 commit 4185155
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/tracker/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int16_t getOffset(int16_t offset_master,int8_t offset_trim);
void updateTelemetryProtocol(uint16_t protocol);
void protocolInit(void);
void trackingInit(void);

void telemetryPortInit(void);
//EASING
int16_t _lastTilt;
int16_t tilt;
Expand Down Expand Up @@ -308,7 +308,8 @@ void tracker_setup(void)

trackingInit();

trackerSerial = openSerialPort(masterConfig.serialConfig.portConfigs[0].identifier, FUNCTION_NONE, NULL, baudRates[masterConfig.serialConfig.portConfigs[0].msp_baudrateIndex], MODE_RXTX, SERIAL_NOT_INVERTED);
telemetryPortInit();

setPrintfSerialPort(trackerSerial);

LED0_OFF;
Expand Down Expand Up @@ -343,6 +344,10 @@ void tracker_setup(void)

}

void telemetryPortInit(void){
trackerSerial = openSerialPort(masterConfig.serialConfig.portConfigs[0].identifier, FUNCTION_NONE, NULL, baudRates[masterConfig.serialConfig.portConfigs[0].msp_baudrateIndex], MODE_RXTX, SERIAL_NOT_INVERTED);
}

void trackingInit(void){
setEpsMode();
updateEPSParams();
Expand Down

0 comments on commit 4185155

Please sign in to comment.