mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 07:13:34 +08:00
Port PX4 to BeagleBone Blue Board using library librobotcontrol instead of a submodule
This commit is contained in:
@@ -335,8 +335,10 @@ int main(int argc, char **argv)
|
||||
string data_path;
|
||||
string node_name;
|
||||
|
||||
bool skippingOutputRedirect = false;
|
||||
|
||||
// parse arguments
|
||||
while (index < argc) {
|
||||
while (index < argc && !skippingOutputRedirect) {
|
||||
//cout << "arg: " << index << " : " << argv[index] << endl;
|
||||
|
||||
if (argv[index][0] == '-') {
|
||||
@@ -366,6 +368,9 @@ int main(int argc, char **argv)
|
||||
cout << "node name: " << node_name << endl;
|
||||
}
|
||||
|
||||
} else if (strchr(argv[index], '>')) {
|
||||
skippingOutputRedirect = true;
|
||||
|
||||
} else {
|
||||
//cout << "positional argument" << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user