mirror of
				https://github.com/goldenfishs/MRobot.git
				synced 2025-11-04 05:23:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			327 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			327 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
  弹道补偿算法。
 | 
						|
*/
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
#include "ahrs.h"
 | 
						|
 | 
						|
typedef struct {
 | 
						|
  AHRS_Eulr_t *eulr;
 | 
						|
} Ballistics_t;
 | 
						|
 | 
						|
void Ballistics_Init(Ballistics_t *b);
 | 
						|
void Ballistics_Apply(Ballistics_t *b, float bullet_speed);
 | 
						|
void Ballistics_Reset(Ballistics_t *b);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 |