hello world

Post questions and issues with Concept2 PM3 SDK
Post Reply
sqh
Paddler
Posts: 7
Joined: July 16th, 2013, 3:33 pm

hello world

Post by sqh » July 16th, 2013, 3:39 pm

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

sqh
Paddler
Posts: 7
Joined: July 16th, 2013, 3:33 pm

and one for Xcode

Post by sqh » July 18th, 2013, 9:01 pm

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

Bob S.
Marathon Poster
Posts: 5142
Joined: March 16th, 2006, 12:00 pm

Re: hello world

Post by Bob S. » July 18th, 2013, 11:18 pm

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.

sqh
Paddler
Posts: 7
Joined: July 16th, 2013, 3:33 pm

Re: hello world

Post by sqh » July 25th, 2013, 5:39 pm

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

User avatar
Citroen
SpamTeam
Posts: 5340
Joined: March 16th, 2006, 3:28 pm
Location: Basingstoke, UK

Re: hello world

Post by Citroen » July 25th, 2013, 5:50 pm

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.

chofra01
Paddler
Posts: 1
Joined: April 22nd, 2014, 12:13 am

Re: hello world

Post by chofra01 » May 6th, 2014, 11:43 am

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

sqh
Paddler
Posts: 7
Joined: July 16th, 2013, 3:33 pm

Re: hello world

Post by sqh » May 6th, 2014, 11:52 am

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

fisk
Paddler
Posts: 2
Joined: February 1st, 2017, 8:47 am

Re: hello world

Post by fisk » February 1st, 2017, 8:52 am

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.

User avatar
Citroen
SpamTeam
Posts: 5340
Joined: March 16th, 2006, 3:28 pm
Location: Basingstoke, UK

Re: hello world

Post by Citroen » February 1st, 2017, 1:22 pm

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.

Post Reply