4 changed files with 49 additions and 3 deletions
			
			
		| @ -0,0 +1,11 @@ | |||
| #include<include/stepper.h> | |||
| namespace simon { | |||
|   namespace stepper { | |||
|     c_stepper::c_stepper(const settings_t* const stepper_set, | |||
|                          a4988::a4988_settings_t* a4988_set) | |||
|       : m_set(stepper_set), m_a4988(a4988_set) | |||
|     { | |||
| 
 | |||
|     } | |||
|   } | |||
| } | |||
| @ -0,0 +1,27 @@ | |||
| #ifndef INCLUDED_HAL_STEPPER | |||
| #define INCLUDED_HAL_STEPPER | |||
| 
 | |||
| #include <include/a4988.h> | |||
| 
 | |||
| namespace simon { | |||
|   namespace stepper { | |||
| 
 | |||
|     typedef struct { | |||
|       const float gear_reduction; | |||
|       const float steps_per_revolution; | |||
|     } settings_t; | |||
| 
 | |||
|     class c_stepper | |||
|     { | |||
|       public: | |||
|         c_stepper(const settings_t* const stepper_set, | |||
|                   a4988::a4988_settings_t* a4988_set); | |||
|       private: | |||
|         const settings_t* const  m_set; | |||
|         a4988::c_allegro_4988 m_a4988; | |||
|     }; | |||
| 
 | |||
|   } // namespace stepper
 | |||
| } // namespace simon
 | |||
| 
 | |||
| #endif /*INCLUDED_HAL_STEPPER*/ | |||
					Loading…
					
					
				
		Reference in new issue