Skip to content

Commit

Permalink
Power: Sensor: Add some missing fields
Browse files Browse the repository at this point in the history
Add missing fields and add restrictions on fields that have limited
ranges
  • Loading branch information
cujomalainey committed Nov 16, 2022
1 parent c3e6609 commit 92326a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/BicyclePowerSensor/BicyclePowerSensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ void powerOnlyDataPageHandler(BicyclePowerStandardPowerOnlyMsg& msg, uintptr_t d
msg.setUpdateEventCount(eventCount++);
msg.setAccumulatedPower(eventCount * 3);
msg.setInstantaneousPower(eventCount * 2);
msg.setPedalPower(eventCount % 101);
msg.setPedalDifferentiation(eventCount / 3);
msg.setInstantaneousCadence(eventCount);
}

void crankTorqueDataPageHandler(BicyclePowerStandardCrankTorqueMsg& msg, uintptr_t data) {
Expand Down

0 comments on commit 92326a1

Please sign in to comment.