summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/eve_phy.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2025-07-28 23:27:12 +0200
committerUros Majstorovic <majstor@majstor.org>2025-07-28 23:27:12 +0200
commit58f41971b1e801ad2fbcea08e5152afa2b18ca73 (patch)
tree51793b55b350f7807d5d1b7e1401b50f402ccc48 /fw/fe310/eos/eve/eve_phy.h
parentdab5a1fbd188f8f9436df1b3dff6e344c444fc23 (diff)
sys logging added; power management reimplemented; bugfixes;
Diffstat (limited to 'fw/fe310/eos/eve/eve_phy.h')
-rw-r--r--fw/fe310/eos/eve/eve_phy.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/fw/fe310/eos/eve/eve_phy.h b/fw/fe310/eos/eve/eve_phy.h
index e747b44..59f6299 100644
--- a/fw/fe310/eos/eve/eve_phy.h
+++ b/fw/fe310/eos/eve/eve_phy.h
@@ -5,24 +5,26 @@ typedef struct EVEPhyAcc {
int k;
int x0;
int y0;
+ uint32_t t0;
int v0x;
int v0y;
} EVEPhyAcc;
void eve_phy_acc_init(EVEPhyAcc *param, int a);
int eve_phy_acc_start(EVEPhyAcc *param, int x0, int y0, uint32_t t0, int v0x, int v0y);
-int eve_phy_acc_tick(EVEPhyAcc *param, uint32_t dt, int *x, int *y);
+int eve_phy_acc_tick(void *_param, int *x, int *y);
typedef struct EVEPhyLHO {
- int x;
- int y;
double f;
double a;
uint32_t t_max;
+ int pivot_x;
+ int pivot_y;
int x0;
int y0;
+ uint32_t t0;
} EVEPhyLHO;
-void eve_phy_lho_init(EVEPhyLHO *param, int x, int y, uint32_t T, double d, uint32_t t_max);
-int eve_phy_lho_start(EVEPhyLHO *param, int x0, int y0);
-int eve_phy_lho_tick(EVEPhyLHO *param, uint32_t dt, int *x, int *y); \ No newline at end of file
+void eve_phy_lho_init(EVEPhyLHO *param, uint32_t T, double d, uint32_t t_max);
+int eve_phy_lho_start(EVEPhyLHO *param, int x, int y, int x0, int y0, uint32_t t0);
+int eve_phy_lho_tick(void *_param, int *x, int *y); \ No newline at end of file