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