forked from Archive/PX4-Autopilot
Config app: Use indexed sensor names
This commit is contained in:
parent
23e7823b51
commit
ed98dc1fdf
|
@ -195,7 +195,7 @@ do_gyro(int argc, char *argv[])
|
|||
int id = ioctl(fd, DEVIOCGDEVICEID,0);
|
||||
int32_t calibration_id = 0;
|
||||
|
||||
param_get(param_find("SENS_GYRO_ID"), &(calibration_id));
|
||||
param_get(param_find("CAL_GYRO0_ID"), &(calibration_id));
|
||||
|
||||
warnx("gyro: \n\tdevice id:\t0x%X\t(calibration is for device id 0x%X)\n\tsample rate:\t%d Hz\n\tread rate:\t%d Hz\n\trange:\t%d dps", id, calibration_id, srate, prate, range);
|
||||
|
||||
|
@ -272,7 +272,7 @@ do_mag(int argc, char *argv[])
|
|||
int id = ioctl(fd, DEVIOCGDEVICEID,0);
|
||||
int32_t calibration_id = 0;
|
||||
|
||||
param_get(param_find("SENS_MAG_ID"), &(calibration_id));
|
||||
param_get(param_find("CAL_MAG0_ID"), &(calibration_id));
|
||||
|
||||
warnx("mag: \n\tdevice id:\t0x%X\t(calibration is for device id 0x%X)\n\tsample rate:\t%d Hz\n\tread rate:\t%d Hz\n\trange:\t%d Ga", id, calibration_id, srate, prate, range);
|
||||
|
||||
|
@ -349,7 +349,7 @@ do_accel(int argc, char *argv[])
|
|||
int id = ioctl(fd, DEVIOCGDEVICEID,0);
|
||||
int32_t calibration_id = 0;
|
||||
|
||||
param_get(param_find("SENS_ACC_ID"), &(calibration_id));
|
||||
param_get(param_find("CAL_ACC0_ID"), &(calibration_id));
|
||||
|
||||
warnx("accel: \n\tdevice id:\t0x%X\t(calibration is for device id 0x%X)\n\tsample rate:\t%d Hz\n\tread rate:\t%d Hz\n\trange:\t%d G", id, calibration_id, srate, prate, range);
|
||||
|
||||
|
|
Loading…
Reference in New Issue