Page 1 of 1

hello world

Posted: July 16th, 2013, 3:39 pm
by sqh
I wrote a sort of hello world using the Windows SDK. It prints/reads
+ dll version
+ number of pm4's connected
+ power in watts per stroke

https://github.com/shalperin/c2-win-hello

That's a Visual studio 2012 project. All of the source code is in Erg1/Erg1/Erg1.cpp.

Not much there, but I would appreciate any feedback on what is. My cpp is a little (lot) rusty!

SH

and one for Xcode

Posted: July 18th, 2013, 9:01 pm
by sqh
And here is one for Xcode on a mac. https://github.com/shalperin/c2-mac-hello (It's the same code as above.)

Again, not much here but aspirations.

SH

Re: hello world

Posted: July 18th, 2013, 11:18 pm
by Bob S.
sqh wrote: + power in watts per stroke
Power per stroke is meaningless. The usual calculation is the power in watts, divided by the stroke rate in strokes/minute. That gives the average work done per stroke and the units are watt-minutes/stroke. For more conventional work units, it can multiplied by 60 seconds/minute. That gives it in watt-seconds/stroke, i.e. joules/stroke.

Bob S.

Re: hello world

Posted: July 25th, 2013, 5:39 pm
by sqh
Bob, makes sense. I was really just trying to get something from the PM4 to print on the screen using a mac and a windows machine. Not sure where I am going with this. :)

SH

Re: hello world

Posted: July 25th, 2013, 5:50 pm
by Citroen
sqh wrote:Bob, makes sense. I was really just trying to get something from the PM4 to print on the screen using a mac and a windows machine. Not sure where I am going with this. :)

SH
Use a logcard, read it with the C2 Utility and you get an instant CSV file with all the data you'd ever need from your workout.

Re: hello world

Posted: May 6th, 2014, 11:43 am
by chofra01
Hi,

I would have been interested to read through the xcode code for some inspiration but unfortunately the link to the code is broken.
Does anyone knows where to find it?

Thanks!

Cheers

Sebastien

Re: hello world

Posted: May 6th, 2014, 11:52 am
by sqh
Sorry about that, I didn't think anyone was paying attention so I deleted the repo. Its currently at https://github.com/shalperin/concept2-api-hello-world mac and windows are both there.

SH

Re: hello world

Posted: February 1st, 2017, 8:52 am
by fisk
sqh wrote:Sorry about that, I didn't think anyone was paying attention so I deleted the repo. Its currently at https://github.com/shalperin/concept2-api-hello-world mac and windows are both there.

SH
Is it possible to upload it again.

I'm very interested in it.

Best regards
Troels.

Re: hello world

Posted: February 1st, 2017, 1:22 pm
by Citroen
fisk wrote:
sqh wrote:Sorry about that, I didn't think anyone was paying attention so I deleted the repo. Its currently at https://github.com/shalperin/concept2-api-hello-world mac and windows are both there.

SH
Is it possible to upload it again.

I'm very interested in it.

Best regards
Troels.
The OP hasn't been here since 2014 so you may have a long wait.