mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 15:11:35 +08:00
systemcmds: convert c -> c++
This commit is contained in:
@@ -55,8 +55,8 @@ set(srcs
|
||||
test_parameters.cpp
|
||||
test_perf.c
|
||||
test_ppm.cpp
|
||||
test_ppm_loopback.c
|
||||
test_rc.c
|
||||
test_ppm_loopback.cpp
|
||||
test_rc.cpp
|
||||
test_search_min.cpp
|
||||
test_sleep.c
|
||||
test_uart_baudchange.c
|
||||
|
||||
@@ -80,7 +80,7 @@ int test_mount(int argc, char *argv[])
|
||||
|
||||
if (d) {
|
||||
|
||||
while ((dir = readdir(d)) != NULL) {
|
||||
while ((dir = readdir(d)) != nullptr) {
|
||||
//printf("%s\n", dir->d_name);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -32,7 +32,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @file test_ppm_loopback.c
|
||||
* @file test_ppm_loopback.cpp
|
||||
* Tests the PWM outputs and PPM input
|
||||
*/
|
||||
|
||||
@@ -120,7 +120,7 @@ int test_ppm_loopback(int argc, char *argv[])
|
||||
|
||||
warnx("servo count: %d", servo_count);
|
||||
|
||||
struct pwm_output_values pwm_out = {.values = {0}, .channel_count = 0};
|
||||
pwm_output_values pwm_out{};
|
||||
|
||||
for (unsigned i = 0; (i < servo_count) && (i < sizeof(pwm_values) / sizeof(pwm_values[0])); i++) {
|
||||
pwm_out.values[i] = pwm_values[i];
|
||||
@@ -32,7 +32,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @file test_rc.c
|
||||
* @file test_rc.cpp
|
||||
* Tests RC input.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user