Support Board
Date/Time: Tue, 15 Sep 2026 20:13:46 +0000
Post From: scsf_Parabolic in Studies.cpp seems broken with v2950 changes
| [2026-09-15 17:14:07] |
| User719512 - Posts: 475 |
|
The prior code was: Input_StartAccelerationFactor.Name = "Start Acceleration Factor"; Input_StartAccelerationFactor.SetFloat(0.02f); Input_StartAccelerationFactor.SetFloatLimits(0.000001f, static_cast<float>(MAX_STUDY_LENGTH)); The new code is: Input_StartAccelerationFactor.Name = "Start Acceleration Factor"; Input_StartAccelerationFactor.SetDouble(0.02); Input_StartAccelerationFactor.SetFloatLimits(0.000001, MAX_STUDY_LENGTH); When I add the study, it shows a ~6e-315 value and selecting the input changes the value to 0, and no value seems valid to enter there. I cannot see the internals for how Set*Limits() is implemented, but I am guessing the union where FloatValueMin/Max are being set are not the right values/size and the SetDouble() is causing the code to correctly use DoubleValueMin/Max because of "ValueType = DOUBLE_VALUE;" in the SetDouble() call. |
| |
