void protocol_flynet_step(char * buffer) { uint32_t tmp = round(fc.pressure); sprintf_P(buffer, PSTR("_PRS %lX\n"), tmp); //10Hz refresh protocol_set_next_step(100); }
void protocol_lk8ex1_step(char * buffer) { char buff[256]; sprintf_P(buff, PSTR("$LK8EX1,%0.0f,99999,%0.0f,%d,%u,"), fc.pressure, (fc.vario * 100.0), fc.temperature, 1000 + (uint16_t)battery_per); sprintf_P(buffer, PSTR("%s*%02X\n"), buff, protocol_gps_checksum(buff)); //5Hz refresh protocol_set_next_step(200); }
void protocol_digifly_step(char * buffer) { char buff[256]; sprintf_P(buff, PSTR("$D,%0.2f,%0.3f,,,%0.1f,,,,,,,"), fc.vario * 10, fc.pressure, fc.temperature); sprintf_P(buffer, PSTR("%s*%02X\n"), buff, protocol_gps_checksum(buff)); //5Hz refresh protocol_set_next_step(200); }