Skip to content
Snippets Groups Projects
  1. Mar 19, 2025
  2. Mar 18, 2025
  3. Mar 17, 2025
  4. Mar 12, 2025
  5. Mar 11, 2025
  6. Mar 10, 2025
  7. Mar 09, 2025
  8. Mar 08, 2025
  9. Mar 07, 2025
  10. Nov 16, 2024
  11. Nov 15, 2024
  12. Nov 10, 2024
    • Václav Jelínek's avatar
      Merge branch 'ev3-color-sensor-recalibration' into 'main' · f7e4116d
      Václav Jelínek authored
      Make the EV3 color sensor calibration applicable to the EV3 color sensor
      
      See merge request !13
      f7e4116d
    • Jakub Vaněk's avatar
      Work around race condition when EV3 sensors are being reset · 4afe94d0
      Jakub Vaněk authored
      This works around an unexpected crash that would happen when you run the
      following code:
      
      ```
      cs = <EV3 color sensor instance>
      # start sensor reset
      cs.start_reset()
      # wait for sensor reset and return new reading
      cs.reflection()
      ```
      
      The cs.reflection() call would raise SensorNotReadyError with the
      message "Sensor has been unplugged". However, ideally, the call should
      block up to 3 seconds until the sensor has rebooted.
      
      It seems to me that the problem is caused by the fact that immediately
      after cs.start_reset() is called, cs.is_ready() will still return true.
      This confuses the waiting loop in read_raw_mode() - it will think that
      the sensor has unexpectedly disappeared a ~millisecond later.
      
      This commit fixes the issue by checking for the reset condition
      in the is_ready() and similar functions.
      Verified
      4afe94d0
    • Václav Jelínek's avatar
      Merge branch 'feature/auto-fw-version' into 'main' · 041d6912
      Václav Jelínek authored
      Automate updating of firmware version strings
      
      See merge request !14
      041d6912
  13. Nov 09, 2024
  14. Nov 06, 2024
Loading