Skip to content
Snippets Groups Projects
Select Git revision
  • develop
  • master default protected
  • feature/up-conv-test
  • jst
  • fabian
  • ITAConvolution_v2024a
  • VA_v2023b
  • VA_v2023a
  • VA_v2022a
  • before_cmake_rework
  • v2021.a
  • v2020.a
  • v2019.a
  • v2018.b
  • v2018.a
  • v2017.c
  • v2017.d
  • v2017.b
  • v2017.a
  • v2016.a
20 results

ITADirectConvolution.h

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    sensorProblemLowLevel.m 757 B
    % This function requires:
    %   * Brick connected via USB
    %   * EV3-Touch-Sensor at port 1
    clear all;
    
    b = CommunicationInterface('usb');
    b.debug = 0; % Set this to 1 to have all packets sent and received printed to the console
    
    % If you call this script more than once in a row, the reply to this command will also be
    % erroneous (as this is another implicit mode change, from Bumps to Pushed).
    val = b.inputReadSI(0, SensorPort.Sensor1, DeviceMode.Touch.Pushed);
    fprintf('Pushed: %d\n', val);
    
    val = b.inputReadSI(0, SensorPort.Sensor1, DeviceMode.Touch.Bumps); % The reply to this command should be erroneous 
    fprintf('Bumps: %d\n', val);
    val = b.inputReadSI(0, SensorPort.Sensor1, DeviceMode.Touch.Bumps); % Now it should work
    fprintf('Bumps: %d\n', val);