mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fixed code style
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
dbe3b0e52b
commit
3f20d78dfe
@ -555,13 +555,15 @@ void VDev::showDevices()
|
||||
std::string devname;
|
||||
unsigned int index = 0;
|
||||
i = 0;
|
||||
|
||||
do {
|
||||
// Each look increments index and returns -1 if end reached
|
||||
i = DevMgr::getNextDeviceName(index, devname);
|
||||
i = DevMgr::getNextDeviceName(index, devname);
|
||||
|
||||
if (i == 0) {
|
||||
PX4_INFO(" %s", devname.c_str());
|
||||
}
|
||||
} while (i==0);
|
||||
PX4_INFO(" %s", devname.c_str());
|
||||
}
|
||||
} while (i == 0);
|
||||
}
|
||||
|
||||
void VDev::showTopics()
|
||||
|
||||
@ -135,9 +135,11 @@ int Simulator::start(int argc, char *argv[])
|
||||
// Update sensor data
|
||||
_instance->pollForMAVLinkMessages(false);
|
||||
#endif
|
||||
|
||||
} else if (argv[2][1] == 'p') {
|
||||
// Update sensor data
|
||||
_instance->pollForMAVLinkMessages(true);
|
||||
|
||||
} else {
|
||||
_instance->initializeSensorData();
|
||||
_instance->_initialized = true;
|
||||
@ -170,7 +172,7 @@ extern "C" {
|
||||
int ret = 0;
|
||||
|
||||
if (argc == 3 && strcmp(argv[1], "start") == 0) {
|
||||
if (strcmp(argv[2], "-s") == 0 ||
|
||||
if (strcmp(argv[2], "-s") == 0 ||
|
||||
strcmp(argv[2], "-p") == 0 ||
|
||||
strcmp(argv[2], "-t") == 0) {
|
||||
if (g_sim_task >= 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user