Simon's and Max' camera steering software.
				https://stiefel.tech
			
			
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							573 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							573 B
						
					
					
				
								#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*/
							 | 
						|
								
							 |