summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/eve_vtrack.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-03-23 21:33:57 +0100
committerUros Majstorovic <majstor@majstor.org>2021-03-23 21:33:57 +0100
commit8c61343677d2ed8f929372863016524707b8ab93 (patch)
tree59f2c65f006bcf20c0b9a6a73c53a100d08775a2 /fw/fe310/eos/eve/eve_vtrack.h
parent98941cdc89d93f5387bb98a443f06408321acc8f (diff)
form scroll completed
Diffstat (limited to 'fw/fe310/eos/eve/eve_vtrack.h')
-rw-r--r--fw/fe310/eos/eve/eve_vtrack.h39
1 files changed, 8 insertions, 31 deletions
diff --git a/fw/fe310/eos/eve/eve_vtrack.h b/fw/fe310/eos/eve/eve_vtrack.h
index 6bf8fa5..b75f673 100644
--- a/fw/fe310/eos/eve/eve_vtrack.h
+++ b/fw/fe310/eos/eve/eve_vtrack.h
@@ -1,6 +1,6 @@
#include <stdint.h>
-#define EVE_VTRACK_FRICTION 500
+#define EVE_VTRACK_ACC_A 1000
typedef void (*eve_vtrack_start_t) (EVETouch *, void *);
typedef int (*eve_vtrack_tick_t) (EVETouch *, void *);
@@ -17,35 +17,12 @@ void eve_vtrack_init(void);
EVEVTrack *eve_vtrack_get(void);
void eve_vtrack_set(eve_vtrack_start_t start, eve_vtrack_tick_t tick, eve_vtrack_stop_t stop, void *param);
void eve_vtrack_reset(void);
-void eve_vtrack_start(uint8_t tag0, int i);
-void eve_vtrack_stop(void);
+void eve_vtrack_start(EVETouch *touch, uint8_t tag0, uint32_t to);
+void eve_vtrack_stop(EVETouch *touch);
-typedef struct EVEVTrackInert {
- int fc;
- int f;
- int x0;
- int y0;
-} EVEVTrackInert;
+void eve_vtrack_acc_start(EVETouch *touch, void *p);
+int eve_vtrack_acc_tick(EVETouch *touch, void *p);
-EVEVTrackInert *eve_vtrack_inert_get_param(void);
-void eve_vtrack_inert_init(EVEVTrackInert *param, int fc);
-void eve_vtrack_inert_start(EVETouch *touch, void *p);
-int eve_vtrack_inert_tick(EVETouch *touch, void *p);
-void eve_vtrack_inert_stop(EVETouch *touch, void *p);
-
-typedef struct EVEVTrackOsc {
- int x;
- int y;
- double f;
- double d;
- double a;
- uint32_t t_max;
- int x0;
- int y0;
-} EVEVTrackOsc;
-
-EVEVTrackOsc *eve_vtrack_osc_get_param(void);
-void eve_vtrack_osc_init(EVEVTrackOsc *param, int x, int y, uint32_t T, double d, uint32_t t_max);
-void eve_vtrack_osc_start(EVETouch *touch, void *p);
-int eve_vtrack_osc_tick(EVETouch *touch, void *p);
-void eve_vtrack_osc_stop(EVETouch *touch, void *p);
+void eve_vtrack_lho_start(EVETouch *touch, void *p);
+int eve_vtrack_lho_tick(EVETouch *touch, void *p);
+void eve_vtrack_lho_stop(EVETouch *touch, void *p);