diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-01 18:25:06 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-03 08:55:16 +0100 |
commit | ed98dc1fdfad3f4ec501c5a9a8cfdaaf9b377614 (patch) | |
tree | b03cbb06381ee40db3dbb9b8d700edea986f9275 /src/systemcmds/config/config.c | |
parent | 23e7823b510397fea2ee93ecfc2211d334148eb6 (diff) | |
download | px4-firmware-ed98dc1fdfad3f4ec501c5a9a8cfdaaf9b377614.tar.gz px4-firmware-ed98dc1fdfad3f4ec501c5a9a8cfdaaf9b377614.tar.bz2 px4-firmware-ed98dc1fdfad3f4ec501c5a9a8cfdaaf9b377614.zip |
Config app: Use indexed sensor names
Diffstat (limited to 'src/systemcmds/config/config.c')
-rw-r--r-- | src/systemcmds/config/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systemcmds/config/config.c b/src/systemcmds/config/config.c index f54342f06..78db19801 100644 --- a/src/systemcmds/config/config.c +++ b/src/systemcmds/config/config.c @@ -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); |