Commit f0f64801 authored by legoc's avatar legoc Committed by ics
Browse files

add method for scan inheritance

parent 67cd4122
......@@ -112,9 +112,12 @@ void VEXPController::updateBMatrix() {
void VEXPController::refreshKi(float64 value) {
// calca1, calca2, calcStatus are calculated by refresh.
// Set the value.
incidentBeam->calcki = value;
// calca1, calca2, calcStatus are calculated.
incidentBeam->calculate(tas::Beam::K_MODE);
a1 = incidentBeam->calca1();
a2 = incidentBeam->calca2();
......@@ -124,9 +127,12 @@ void VEXPController::refreshKi(float64 value) {
void VEXPController::refreshKf(float64 value) {
// calca1, calca2, calcStatus are calculated by refresh.
// Set the value.
scatteredBeam->calckf = value;
// calca1, calca2, calcStatus are calculated.
scatteredBeam->calculate(tas::Beam::K_MODE);
a5 = scatteredBeam->calca5();
a6 = scatteredBeam->calca6();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment