You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement VTX MSP protocol support so the video channel can be changed
from Betaflight, ELRS Lua Script or any other system that uses VTX MPS
protocol.
The plan is be able to change algo power and badnwidth.
DEBUG_PRINT("got voltage %f V temp %d C variant %.4s\n", (float)(data.tx_voltage / 64.0f), data.tx_temperature, data.fc_variant);
279
+
DEBUG_PRINT("got voltage %f V temp %d C variant %.4s and channel %d\n", (float)(data.tx_voltage / 64.0f), data.tx_temperature, data.fc_variant, data.fc_vtx_channel);
254
280
write(data_socket_fd, &data, sizeof(data));
255
281
}
256
282
@@ -390,6 +416,8 @@ int main(int argc, char *argv[]) {
390
416
clock_gettime(CLOCK_MONOTONIC, &last_data);
391
417
clock_gettime(CLOCK_MONOTONIC, &last_frame);
392
418
419
+
send_vtx_set_config_request(serial_fd);
420
+
393
421
while (!quit) {
394
422
poll_fds[0].fd=serial_fd;
395
423
poll_fds[1].fd=pty_fd;
@@ -431,6 +459,8 @@ int main(int argc, char *argv[]) {
DEBUG_PRINT("got data %04X version spec %d C %f V variant %.4s\n", packet->version_specifier, packet->tx_temperature, packet->tx_voltage / 64.0f, packet->fc_variant);
490
+
DEBUG_PRINT("got data %04X version spec %d C %f V variant %.4s and vtx channel %d\n", packet->version_specifier, packet->tx_temperature, packet->tx_voltage / 64.0f, packet->fc_variant, packet->fc_vtx_channel);
0 commit comments