move_xrobot/User/component/ballistics.h

32 lines
507 B
C
Raw Normal View History

2025-01-14 10:35:04 +08:00
/*
*/
#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);
2025-02-11 19:46:41 +08:00
/**
* @brief
* @param bullet_speed
* @param distance
* @return
*/
float Simpal_Ballistics_Apply(float bullet_speed, float distance);
2025-01-14 10:35:04 +08:00
void Ballistics_Reset(Ballistics_t *b);
#ifdef __cplusplus
}
#endif