예제 #1
0
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);
}
예제 #2
0
파일: LK8EX1.cpp 프로젝트: pculka/SkyDrop
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);
}
예제 #3
0
파일: digifly.cpp 프로젝트: pculka/SkyDrop
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);
}