Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Committing formatting changes, in prep for changes to sync repos
Browse files Browse the repository at this point in the history
  • Loading branch information
KierPalin committed Nov 6, 2024
1 parent 9c837b5 commit ec2a9b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generateGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ namespace microcode {
if (this.drawSensorStates[this.sensors[sensor].getName()]) {
const diff = Math.abs(this.processedCoordinates[sensor][i+1] - this.processedCoordinates[sensor][i+3])

// const smoothing_rate = diff >= 15 ? 8 : 4
const smoothing_rate = 1;
const smoothing_rate = diff >= 15 ? 8 : 4
// const smoothing_rate = 1;

// if (Math.abs(this.processedCoordinates[sensor][i+1] - this.processedCoordinates[sensor][i+3]) >= 0.)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"pxt-microbit": "^7.1.2"
"pxt-microbit": "^7.1.13"
}
}
1 change: 1 addition & 0 deletions sensors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ namespace microcode {
// The number of measurements this sensor has left is displayed on the microbit 5x5 led grid; when the Arcade Shield is not connected.
this.sensorWithMostTimeLeft = sensors[0]
let mostTimeLeft = this.sensorWithMostTimeLeft.totalMeasurements * this.sensorWithMostTimeLeft.getPeriod()

this.sensors.forEach(sensor => {
if ((sensor.totalMeasurements * sensor.getPeriod()) > mostTimeLeft) {
mostTimeLeft = sensor.totalMeasurements * sensor.getPeriod()
Expand Down

0 comments on commit ec2a9b0

Please sign in to comment.