diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-26 22:03:36 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-26 22:03:36 +0200 |
commit | 0b50dfe730d87ff052ef08f0dd6df6071d50aef9 (patch) | |
tree | b87ef18d3bad97483b573c2469c1e28c7359f0df /robot/sim.h | |
parent | 2a0270f3ba6eb993fb39ed3564f626d724156654 (diff) |
update sim, fix readme brainfarts & fix bomd command
Diffstat (limited to 'robot/sim.h')
-rw-r--r-- | robot/sim.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/robot/sim.h b/robot/sim.h index 7d7c091..874a4ad 100644 --- a/robot/sim.h +++ b/robot/sim.h @@ -59,6 +59,7 @@ #define TOP_BUTTON 3 #define BOTTOM_BUTTON 4 #define QTR_EMITTERS_ON 0 +#define IR_EMITTERS_ON 0 /** * simulates pololu library functions for local testing @@ -79,6 +80,16 @@ unsigned char get_single_debounced_button_press(unsigned char buttons); // NOLIN void qtr_read(unsigned int* sensor_values, unsigned char read_mode); // NOLINT unsigned int analog_read(unsigned char channel); // NOLINT void print(const char* str); // NOLINT +void lcd_goto_xy(unsigned int x, unsigned int y); // NOLINT +void delay(unsigned long duration); // NOLINT +void delay_ms(unsigned long duration); // NOLINT +int read_battery_millivolts(); // NOLINT +unsigned long get_ticks(); // NOLINT +unsigned long ticks_to_microseconds(unsigned long num_ticks); // NOLINT +int read_line(); // NOLINT +void play_frequency(unsigned int freq, unsigned int duration, unsigned char volume); // NOLINT +void calibrate_line_sensors(unsigned char read_mode); // NOLINT +unsigned char pololu_3pi_init(unsigned int line_sensor_timeout); // NOLINT void w2_sim_setup(); void w2_sim_cycle_begin(); |