hello world
hello world
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
+ 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
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
Again, not much here but aspirations.
SH
Re: hello world
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.sqh wrote: + power in watts per stroke
Bob S.
Re: hello world
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
SH
- Citroen
- SpamTeam
- Posts: 8042
- Joined: March 16th, 2006, 3:28 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: hello world
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.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
Re: hello world
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
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
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
SH
Re: hello world
Is it possible to upload it again.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
I'm very interested in it.
Best regards
Troels.
- Citroen
- SpamTeam
- Posts: 8042
- Joined: March 16th, 2006, 3:28 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: hello world
The OP hasn't been here since 2014 so you may have a long wait.fisk wrote:Is it possible to upload it again.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
I'm very interested in it.
Best regards
Troels.