hello world

Post questions and issues with Concept2 PM3 SDK

hello world

Postby 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

Postby 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
sqh
Paddler
 
Posts: 7
Joined: July 16th, 2013, 3:33 pm

Re: hello world

Postby 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.
Bob S.
Marathon Poster
 
Posts: 5142
Joined: March 16th, 2006, 12:00 pm

Re: hello world

Postby 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
sqh
Paddler
 
Posts: 7
Joined: July 16th, 2013, 3:33 pm

Re: hello world

Postby 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.
User avatar
Citroen
SpamTeam
 
Posts: 4860
Joined: March 16th, 2006, 3:28 pm
Location: Basingstoke, UK

Re: hello world

Postby 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
chofra01
Paddler
 
Posts: 1
Joined: April 22nd, 2014, 12:13 am

Re: hello world

Postby 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
sqh
Paddler
 
Posts: 7
Joined: July 16th, 2013, 3:33 pm

Re: hello world

Postby 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.
fisk
Paddler
 
Posts: 2
Joined: February 1st, 2017, 8:47 am

Re: hello world

Postby 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.
User avatar
Citroen
SpamTeam
 
Posts: 4860
Joined: March 16th, 2006, 3:28 pm
Location: Basingstoke, UK


Return to SDK Questions

Who is online

Users browsing this forum: No registered users and 1 guest