Skip to content

Conversation

@sporkfly
Copy link
Contributor

@sporkfly sporkfly commented Jan 6, 2021

Addition of profiles for Power Only, Crank Torque, Wheel Torque. Crank Torque Frequency not included.

Added Bicycle Power profile initial draft, working with Favero Assioma Duo pedals. Most measurements will require post-processing, but data is received. Didn't see that there was already development work on this profile otherwise I would have started from existing work.
Copy link
Owner

@cujomalainey cujomalainey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks very good (without checking against spec yet), just some indentation and need to your example to the travis build. I will do another review later this week in detail with the spec in hand just to verify, if all goes well we can merge this. If you desire and have the time you are welcome to add some additional commits to fixup any comments.


/* Crank Torque Frequency Main Data Page

NOTE: CTF messages are big endian. The byte order for multi-byte
Copy link
Owner

@cujomalainey cujomalainey Jan 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the helper functions can handle any endianess

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is why in >8 bit values you can specify LSB and MSB :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not to self to implement this.

Copy link
Owner

@cujomalainey cujomalainey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing messages

  • General calibration request
  • general calibration response
  • Auto Zero Support
  • custom parameters page
  • tf define calibration (and response page)
  • Save Slope to Flash Main Data Page (and response)
  • Torque Frequency Request to Save Serial Number in Flash (and repsonse)
  • Get/Set Parameter
    • Crank Parameters
    • Power Phase Config
    • Rider position config
    • Advanced Capabilities
    • Advanced Capabilities 2
  • Measurement output
  • Cycling Dynamics
  • Left force angle
  • Pedal position data
  • torque barycenter

Jeez i forgot how crazy this profile is. Ok i think its safe to say calibration is out of the question for the time being.

Thanks for the contribution, I will go ahead, merge this, fix minor formatting and naming issues, replace common datapages with share code versions then handle merge conflicts. I will leave these comments for myself as a TODO list.

}

void powerOnlyDataPageHandler(BicyclePowerPowerOnly& msg, uintptr_t data) {
Serial.print("Pedal Balance: ");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to self break out pedal differentiation bit and add method to check for "not used" case

@cujomalainey cujomalainey merged commit 1a000fd into cujomalainey:merge/sporkfly Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants