Lines Matching refs:sensors
53 std::vector<SensorSpec> sensors; member
153 if (!args->sensors.size() in ValidateArgs()
172 for (unsigned int i = 0; i < args->sensors.size(); i++) { in ValidateArgs()
173 if (args->sensors[i].special_rate == SensorSpecialRate::None in ValidateArgs()
174 && args->sensors[i].rate_hz < 0) { in ValidateArgs()
178 args->sensors[i].sensor_type).c_str()); in ValidateArgs()
185 for (unsigned int i = 0; i < args->sensors.size(); i++) { in ValidateArgs()
186 if (!args->sensors[i].have_cal_ref in ValidateArgs()
187 && (args->sensors[i].sensor_type == SensorType::Barometer in ValidateArgs()
188 || args->sensors[i].sensor_type == in ValidateArgs()
193 args->sensors[i].sensor_type).c_str()); in ValidateArgs()
230 static bool ParseSensorArg(std::vector<SensorSpec>& sensors, const char *arg_str, in ParseSensorArg() argument
282 sensors.push_back(spec); in ParseSensorArg()
314 if (!ParseSensorArg(args->sensors, optarg, argv[0])) { in ParseArgs()
431 success = hub->DisableSensors(args->sensors); in main()
437 if (!args->sensors.size()) { in main()
440 hub->PrintSensorEvents(args->sensors, args->count); in main()
445 success = hub->EnableSensors(args->sensors); in main()
447 hub->PrintSensorEvents(args->sensors, args->count); in main()
452 hub->DisableSensors(args->sensors); in main()
453 success = hub->CalibrateSensors(args->sensors); in main()