diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-26 14:55:22 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-26 14:55:22 +0200 |
commit | 9c1f3dcc98b639e3bbcb6a8e199d8f1aa4bcc42a (patch) | |
tree | 016de2cb788ba504d33e63588f19a7f253f950df /robot/modes.h | |
parent | fda1e9389c4bcef89a2bcdd2c01f0727e9efdb18 (diff) |
add mode shims
Diffstat (limited to 'robot/modes.h')
-rw-r--r-- | robot/modes.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/robot/modes.h b/robot/modes.h index fe81043..a9d96d8 100644 --- a/robot/modes.h +++ b/robot/modes.h @@ -1,9 +1,13 @@ #pragma once +#include "mode_chrg.h" +#include "mode_dirc.h" #include "mode_grid.h" #include "mode_halt.h" #include "mode_lcal.h" #include "mode_maze.h" +#include "mode_scal.h" +#include "mode_spin.h" /** function pointer to current mode */ extern void (*g_w2_current_mode)(); @@ -30,10 +34,8 @@ typedef enum { /** array that maps w2_e_mode to mode function pointers */ static const void(*const W2_MODES[]) = { - &w2_mode_maze, - &w2_mode_grid, - &w2_mode_grid, - &w2_mode_halt, + &w2_mode_maze, &w2_mode_grid, &w2_mode_grid, &w2_mode_halt, + &w2_mode_chrg, &w2_mode_dirc, &w2_mode_spin, &w2_mode_scal, }; /** switch the current mode */ |