Merge remote-tracking branch 'upstream/edge' into upstream-master
[clinton/Smoothieware.git] / src / modules / robot / arm_solutions / MorganSCARASolution.h
CommitLineData
1217e470
QH
1#ifndef MORGANSCARASOLUTION_H
2#define MORGANSCARASOLUTION_H
3//#include "libs/Module.h"
4#include "BaseSolution.h"
5
6class Config;
7
8class MorganSCARASolution : public BaseSolution {
9 public:
10 MorganSCARASolution(Config*);
3cc3f421
OL
11 void cartesian_to_actuator(const float[], float[] );
12 void actuator_to_cartesian(const float[], float[] );
1217e470
QH
13
14 bool set_optional(const arm_options_t& options);
51e6a11d 15 bool get_optional(arm_options_t& options, bool force_all);
1217e470
QH
16
17 private:
18 void init();
19 float to_degrees(float radians);
20
21 float arm1_length;
22 float arm2_length;
23 float morgan_offset_x;
24 float morgan_offset_y;
983e6549
QH
25 float morgan_scaling_x;
26 float morgan_scaling_y;
2490d558
QH
27 float morgan_undefined_min;
28 float morgan_undefined_max;
1217e470
QH
29 float slow_rate;
30};
31
32#endif // MORGANSCARASOLUTION_H