mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
Fix HRT tests
This commit is contained in:
@@ -88,8 +88,8 @@
|
|||||||
|
|
||||||
extern uint16_t ppm_buffer[];
|
extern uint16_t ppm_buffer[];
|
||||||
extern unsigned ppm_decoded_channels;
|
extern unsigned ppm_decoded_channels;
|
||||||
extern uint16_t ppm_edge_history[];
|
// extern uint16_t ppm_edge_history[];
|
||||||
extern uint16_t ppm_pulse_history[];
|
// extern uint16_t ppm_pulse_history[];
|
||||||
|
|
||||||
int test_ppm(int argc, char *argv[])
|
int test_ppm(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
@@ -102,17 +102,17 @@ int test_ppm(int argc, char *argv[])
|
|||||||
printf(" %u\n", ppm_buffer[i]);
|
printf(" %u\n", ppm_buffer[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("edges\n");
|
// printf("edges\n");
|
||||||
|
|
||||||
for (i = 0; i < 32; i++) {
|
// for (i = 0; i < 32; i++) {
|
||||||
printf(" %u\n", ppm_edge_history[i]);
|
// printf(" %u\n", ppm_edge_history[i]);
|
||||||
}
|
// }
|
||||||
|
|
||||||
printf("pulses\n");
|
// printf("pulses\n");
|
||||||
|
|
||||||
for (i = 0; i < 32; i++) {
|
// for (i = 0; i < 32; i++) {
|
||||||
printf(" %u\n", ppm_pulse_history[i]);
|
// printf(" %u\n", ppm_pulse_history[i]);
|
||||||
}
|
// }
|
||||||
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user