sensor: shell: Allow individual axis data to be processed
For the supported channels, instead of just allowing 3-axis data being printed out, allow individual channels to be processed (e.g: accel_x, gyro_y, etc). Signed-off-by: Luis Ubieda <luisf@croxel.com>
This commit is contained in:
parent
4c9b6b6ff7
commit
36dfea121d
1 changed files with 0 additions and 17 deletions
|
|
@ -364,23 +364,6 @@ void sensor_shell_processing_callback(int result, uint8_t *buf, uint32_t buf_len
|
|||
size_t frame_size;
|
||||
uint16_t frame_count;
|
||||
|
||||
/* Channels with multi-axis equivalents are skipped */
|
||||
switch (ch.chan_type) {
|
||||
case SENSOR_CHAN_ACCEL_X:
|
||||
case SENSOR_CHAN_ACCEL_Y:
|
||||
case SENSOR_CHAN_ACCEL_Z:
|
||||
case SENSOR_CHAN_GYRO_X:
|
||||
case SENSOR_CHAN_GYRO_Y:
|
||||
case SENSOR_CHAN_GYRO_Z:
|
||||
case SENSOR_CHAN_MAGN_X:
|
||||
case SENSOR_CHAN_MAGN_Y:
|
||||
case SENSOR_CHAN_MAGN_Z:
|
||||
case SENSOR_CHAN_POS_DX:
|
||||
case SENSOR_CHAN_POS_DY:
|
||||
case SENSOR_CHAN_POS_DZ:
|
||||
continue;
|
||||
}
|
||||
|
||||
rc = decoder->get_size_info(ch, &base_size, &frame_size);
|
||||
if (rc != 0) {
|
||||
LOG_DBG("skipping unsupported channel %s:%d",
|
||||
|
|
|
|||
Loading…
Reference in a new issue