initial commit

This commit is contained in:
Dan Priece
2026-05-19 09:15:34 -04:00
commit f4201b974b
21 changed files with 2130 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "ChronoReading.h"
#include "ChronoProfile.h"
// Constructor implementation
ChronoReading::ChronoReading(){}
ChronoReading::ChronoReading(int fps, ChronoProfile profile) {
_fps=fps;
_profile=profile;
}
ChronoProfile ChronoReading::getProfile(){return _profile;}
int ChronoReading::getFPS(){
return _fps;
}
int ChronoReading::getFPE(){
float weight=_profile.getProjectileProfile().getWeight();
return (int)round(_calculateFPE(_fps, weight));
}
float ChronoReading::_calculateFPE(float fps, float weight){
//weight in grains
return (fps*fps*weight) / 450240;
}