Hub telemetry and fix compilation warnings/errors if protocols are commented

This commit is contained in:
pascallanger
2016-01-27 17:57:33 +01:00
parent a689ce4de9
commit b50bedef39
18 changed files with 578 additions and 483 deletions

View File

@@ -27,7 +27,7 @@ uint8_t bind_buf_arry[4][10];
// HiSky protocol uses TX id as an address for nRF24L01, and uses frequency hopping sequence
// which does not depend on this id and is passed explicitly in binding sequence. So we are free
// to generate this sequence as we wish. It should be in the range [02..77]
static void calc_fh_channels()
static void __attribute__((unused)) calc_fh_channels()
{
uint8_t idx = 0;
uint32_t rnd = MProtocol_id;
@@ -61,7 +61,7 @@ static void calc_fh_channels()
}
}
static void build_binding_packet(void)
static void __attribute__((unused)) build_binding_packet(void)
{
uint8_t i;
uint16_t sum=0;
@@ -95,7 +95,7 @@ static void build_binding_packet(void)
}
}
static void hisky_init()
static void __attribute__((unused)) hisky_init()
{
NRF24L01_Initialize();
@@ -116,7 +116,7 @@ static void hisky_init()
// HiSky channel sequence: AILE ELEV THRO RUDD GEAR PITCH, channel data value is from 0 to 1000
// Channel 7 - Gyro mode, 0 - 6 axis, 3 - 3 axis
static void build_ch_data()
static void __attribute__((unused)) build_ch_data()
{
uint16_t temp;
uint8_t i,j;
@@ -217,7 +217,7 @@ uint16_t hisky_cb()
return 1000; // send 1 binding packet and 1 data packet per 9ms
}
static void initialize_tx_id()
static void __attribute__((unused)) initialize_tx_id()
{
//Generate frequency hopping table
if(sub_protocol==HK310)