BangleApps/apps/sensortools
thyttan 2d25812228 chore: rm semicolons at end of clkinfo + settings
This was done in response to 9185793042 (commitcomment-148439450) .
2024-10-30 20:20:44 +01:00
..
ChangeLog sensortools - Fix sensortools breaking Bangle.emit with multiple arguments (e.g. "message") 2023-07-26 20:34:34 +02:00
README.md sensortools - Format README and add emulated routes as gpx 2023-06-11 20:28:34 +02:00
boot.js sensortools - Move code into lib for faster boot if disabled 2022-10-30 16:41:28 +01:00
default.json sensortools - Add setting for log 2023-06-11 20:40:08 +02:00
icon.png sensortools - Initial implementation 2022-09-30 16:30:42 +02:00
lib.js sensortools - Fix sensortools breaking Bangle.emit with multiple arguments (e.g. "message") 2023-07-26 20:34:34 +02:00
metadata.json sensortools - Fix sensortools breaking Bangle.emit with multiple arguments (e.g. "message") 2023-07-26 20:34:34 +02:00
settings.js chore: rm semicolons at end of clkinfo + settings 2024-10-30 20:20:44 +01:00
square.gpx sensortools - Format README and add emulated routes as gpx 2023-06-11 20:28:34 +02:00
squareFuzzy.gpx sensortools - Format README and add emulated routes as gpx 2023-06-11 20:28:34 +02:00

README.md

Sensor tools

This allows to simulate sensor behaviour for development purposes

Per Sensor settings:

Enabled:

  • true
  • false

Mode:

  • emulate: Completely craft events for this sensor
  • modify: Take existing events from real sensor and modify their data

Name:

  • name of the emulation or modification mode

Power:

  • emulate: Simulate Bangle._PWR changes, but do not call real power function
  • nop: Do nothing, ignore all power calls for this sensor but return true
  • passthrough: Just pass all power calls unmodified
  • on: Do not allow switching the sensor off, all calls are switching the real sensor on

HRM

Modes:

  • modify: Modify the original events from this sensor
  • emulate: Create events simulating sensor activity

Modification:

  • bpmtrippled: Multiply the bpm value of the original HRM values with 3

Emulation:

  • sin: Calculate bpm changes by using sin

GPS

Modes:

  • emulate

Emulation:

  • staticfix: static complete fix with all values
  • route: A square route starting in the SW corner and moving SW->NW->NO->SW... Download as gpx
  • routeFuzzy: Roughly the same square as route, but with 100m seqments with some variaton in course Download as gpx
  • nofix: All values NaN but time,sattelites,fix and fix == 0
  • changingfix: A fix with randomly changing values

Compass

Modes:

  • emulate

Emulation:

  • static: All values but heading are 1, heading == 0
  • rotate: All values but heading are 1, heading rotates 360°

Creator

halemmerich