mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 12:01:42 +08:00
fix code style for Travis
This commit is contained in:
@@ -131,19 +131,20 @@ int Simulator::start(int argc, char *argv[])
|
|||||||
if (_instance) {
|
if (_instance) {
|
||||||
drv_led_start();
|
drv_led_start();
|
||||||
|
|
||||||
if (argc == 5 && strcmp(argv[3], "-u") == 0)
|
if (argc == 5 && strcmp(argv[3], "-u") == 0) {
|
||||||
udp_port = atoi(argv[4]);
|
udp_port = atoi(argv[4]);
|
||||||
|
}
|
||||||
|
|
||||||
if (argv[2][1] == 's') {
|
if (argv[2][1] == 's') {
|
||||||
_instance->initializeSensorData();
|
_instance->initializeSensorData();
|
||||||
#ifndef __PX4_QURT
|
#ifndef __PX4_QURT
|
||||||
// Update sensor data
|
// Update sensor data
|
||||||
_instance->pollForMAVLinkMessages(false,udp_port);
|
_instance->pollForMAVLinkMessages(false, udp_port);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} else if (argv[2][1] == 'p') {
|
} else if (argv[2][1] == 'p') {
|
||||||
// Update sensor data
|
// Update sensor data
|
||||||
_instance->pollForMAVLinkMessages(true,udp_port);
|
_instance->pollForMAVLinkMessages(true, udp_port);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
_instance->initializeSensorData();
|
_instance->initializeSensorData();
|
||||||
|
|||||||
Reference in New Issue
Block a user