Changed filament density to use g/cm^3. Extended tooltip to indicate calculation methods.

This commit is contained in:
Joseph Lenox 2017-01-25 07:44:23 -06:00 committed by bubnikv
parent 90d3535520
commit 61c0ae4e94
2 changed files with 3 additions and 3 deletions

View File

@ -326,7 +326,7 @@ sub export {
foreach my $extruder (@{$gcodegen->writer->extruders}) {
my $used_filament = $extruder->used_filament;
my $extruded_volume = $extruder->extruded_volume;
my $filament_weight = $extruded_volume * $extruder->filament_density;
my $filament_weight = $extruded_volume * $extruder->filament_density / 1000;
my $filament_cost = $filament_weight * ($extruder->filament_cost / 1000);
$self->print->set_filament_stats($extruder->id, $used_filament);

View File

@ -338,8 +338,8 @@ PrintConfigDef::PrintConfigDef()
def = this->add("filament_density", coFloats);
def->label = "Density";
def->tooltip = "Enter your filament density here. This is only for statistical information. A decent way is to weigh a known length of filament and compute the ratio of the length to volume.";
def->sidetext = "g/mm^3";
def->tooltip = "Enter your filament density here. This is only for statistical information. A decent way is to weigh a known length of filament and compute the ratio of the length to volume. Better is to calculate the volume directly through displacement.";
def->sidetext = "g/cm^3";
def->cli = "filament-density=f@";
def->min = 0;
{