deprecate usage of M665 Fxxx in favor of M665 Hxxx
authorJim Morris <morris@wolfman.com>
Sun, 6 Sep 2015 05:21:01 +0000 (22:21 -0700)
committerJim Morris <morris@wolfman.com>
Sun, 6 Sep 2015 05:21:01 +0000 (22:21 -0700)
src/modules/robot/arm_solutions/LinearDeltaSolution.cpp

index 1513aaf..245be98 100644 (file)
@@ -121,7 +121,8 @@ bool LinearDeltaSolution::set_optional(const arm_options_t& options) {
             case 'C': tower3_offset = i.second; break;
             case 'D': tower1_angle = i.second; break;
             case 'E': tower2_angle = i.second; break;
-            case 'F': tower3_angle = i.second; break;
+            case 'F': tower3_angle = i.second; break; // WARNING this will be deprecated
+            case 'H': tower3_angle = i.second; break;
         }
     }
     init();
@@ -141,7 +142,7 @@ bool LinearDeltaSolution::get_optional(arm_options_t& options) {
         options['C'] = this->tower3_offset;
         options['D'] = this->tower1_angle;
         options['E'] = this->tower2_angle;
-        options['F'] = this->tower3_angle;
+        options['H'] = this->tower3_angle;
     }
 
     return true;