|
|
| Jason () |
| | Creates a robot object.
|
| |
|
| ~Jason () |
| | Destroys a robot object.
|
| |
|
void | load_saved_info () |
| |
|
void | store_saved_info () |
| |
|
void | set_motor_port (const uint8_t mtr_idx, const uint8_t port) |
| |
|
uint8_t | get_motor_port (const uint8_t mtr_idx) |
| |
|
void | set_compoi_port (const uint8_t idx, const uint8_t port) |
| |
|
uint8_t | get_compoi_port (const uint8_t idx) |
| |
|
void | set_compoi_addr (const uint8_t idx, const uint8_t addr) |
| |
|
uint8_t | get_compoi_addr (const uint8_t idx) |
| |
|
void | set_uts_mode (const uint8_t side, const uint8_t mode) |
| |
|
uint8_t | get_uts_mode (const uint8_t side) |
| |
|
void | set_uts_port (const uint8_t side, const uint8_t port) |
| |
|
uint8_t | get_uts_port (const uint8_t side) |
| |
|
void | set_heading_port (const uint8_t port) |
| |
|
uint8_t | get_heading_port () |
| |
|
void | set_heading_addr (const uint8_t addr) |
| |
|
uint8_t | get_heading_addr () |
| |
|
void | set_cam_port (const uint8_t port) |
| |
|
uint8_t | get_cam_port () |
| |
|
void | set_cam_baud (const uint32_t baud) |
| |
|
uint32_t | get_cam_baud () |
| |
|
void | set_kicker_pin (const uint32_t pin) |
| |
|
uint32_t | get_kicker_pin () |
| |
|
void | set_dribbler_pin (const uint32_t pin) |
| |
|
uint32_t | get_dribbler_pin () |
| |
|
void | set_comm_port (const uint8_t port) |
| |
|
uint8_t | get_comm_port () |
| |
|
void | set_comm_baud (const uint32_t baud) |
| |
|
uint32_t | get_comm_baud () |
| |
|
void | begin () |
| | Activates the robot and configure the peripherals.
|
| |
|
void | end () |
| | Deactivates the robot and releases all occupied resources.
|
| |
| void | set_motor_spd (const uint8_t mtr_idx, int16_t spd) |
| | Sets the speed of a motor.
|
| |
| void | polar_ctrl (int16_t angle, int16_t spd, int16_t rotation) |
| | Sets the polar speed of the robot.
|
| |
| void | rect_ctrl (int16_t spd_x, int16_t spd_y, int16_t rotation) |
| | Sets the rectangular (cartesian) speed of the robot.
|
| |
| bool | move_to (const uint8_t side1, const int16_t dist1, const uint8_t side2, const int16_t dist2, const int16_t target_heading=0, const double rotation_kp=1.2, const int16_t spd=100, const int16_t threshold=1) |
| | Moves the robot to a specific position.
|
| |
| virtual void | gs () |
| | Do something about the grayscales.
|
| |
| int16_t | get_ir_max_val () |
| | Gets the maximum value read by all IR channels.
|
| |
| int16_t | get_ir_avg_val () |
| | Gets the average value read by all IR channels.
|
| |
| int8_t | get_ir_max_idx () |
| | Gets the channel number of the maximum valued IR channel.
|
| |
| int16_t | get_ir_ball_angle () |
| | Gets the IR ball angle (in degrees).
|
| |
| int16_t | get_uts_dist (const uint8_t side) |
| | Gets the ultrasonic sensor distance of one side.
|
| |
| void | disable_uts (const uint8_t side) |
| | Disables an ultrasonic sensor of one side.
|
| |
| void | enable_uts (const uint8_t side) |
| | Enables an ultrasonic sensor of one side.
|
| |
| int16_t | get_heading () |
| | Gets the heading of the robot.
|
| |
| void | reset_heading () |
| | Resets the heading of the robot.
|
| |
| int16_t | get_rotation_spd (const int16_t target_heading=0) |
| | Gets the rotation speed of the robot.
|
| |
| virtual int16_t | get_orange_ball_dist () |
| | Gets the distance to the orange ball.
|
| |
| virtual int16_t | get_orange_ball_angle () |
| | Gets the angle to the orange ball (in degrees).
|
| |
| virtual int16_t | get_opponent_goal_dist () |
| | Gets the distance to the opponent's goal.
|
| |
| virtual int16_t | get_opponent_goal_angle () |
| | Gets the angle to the opponent's goal (in degrees).
|
| |
| virtual int16_t | get_my_goal_dist () |
| | Gets the distance to my goal.
|
| |
| virtual int16_t | get_my_goal_angle () |
| | Gets the angle to my goal (in degrees).
|
| |
| virtual void | set_kicker_state (const bool state) |
| | Sets whether the kicker is "kicked" (extended) or retracted.
|
| |
| virtual bool | get_kicker_state () |
| | Gets whether the kicker is "kicked" (extended) or retracted.
|
| |
| virtual void | set_dribbler_spd (const int16_t spd) |
| | Sets the spinning speed of the dribbler.
|
| |
|
void | clear_mon () |
| | Clears everything on the monitor.
|
| |
| void | set_cursor (int16_t x, int16_t y) |
| | Sets the cursor to print text on the monitor.
|
| |
|
size_t | print (const __FlashStringHelper *) |
| |
|
size_t | print (const String &) |
| |
|
size_t | print (const char[]) |
| |
|
size_t | print (char) |
| |
|
size_t | print (unsigned char, int=DEC) |
| |
|
size_t | print (int, int=DEC) |
| |
|
size_t | print (unsigned int, int=DEC) |
| |
|
size_t | print (long, int=DEC) |
| |
|
size_t | print (unsigned long, int=DEC) |
| |
|
size_t | print (double, int=2) |
| |
|
size_t | print (const Printable &) |
| |
| size_t | write (uint8_t) |
| |
|
int | getWriteError () |
| |
|
void | clearWriteError () |
| |
|
size_t | write (const char *str) |
| |
| virtual size_t | write (const uint8_t *buffer, size_t size) |
| |
|
size_t | write (const char *buffer, size_t size) |
| |
|
virtual int | availableForWrite () |
| |
|
size_t | print (const __FlashStringHelper *) |
| |
|
size_t | print (const String &) |
| |
|
size_t | print (const char[]) |
| |
|
size_t | print (char) |
| |
|
size_t | print (unsigned char, int=DEC) |
| |
|
size_t | print (int, int=DEC) |
| |
|
size_t | print (unsigned int, int=DEC) |
| |
|
size_t | print (long, int=DEC) |
| |
|
size_t | print (unsigned long, int=DEC) |
| |
|
size_t | print (long long, int=DEC) |
| |
|
size_t | print (unsigned long long, int=DEC) |
| |
|
size_t | print (float, int=2) |
| |
|
size_t | print (double, int=2) |
| |
|
size_t | print (const Printable &) |
| |
|
size_t | println (const __FlashStringHelper *) |
| |
|
size_t | println (const String &s) |
| |
|
size_t | println (const char[]) |
| |
|
size_t | println (char) |
| |
|
size_t | println (unsigned char, int=DEC) |
| |
|
size_t | println (int, int=DEC) |
| |
|
size_t | println (unsigned int, int=DEC) |
| |
|
size_t | println (long, int=DEC) |
| |
|
size_t | println (unsigned long, int=DEC) |
| |
|
size_t | println (long long, int=DEC) |
| |
|
size_t | println (unsigned long long, int=DEC) |
| |
|
size_t | println (float, int=2) |
| |
|
size_t | println (double, int=2) |
| |
|
size_t | println (const Printable &) |
| |
|
size_t | println (void) |
| |
|
int | printf (const char *format,...) |
| |
|
int | printf (const __FlashStringHelper *format,...) |
| |
|
int | vprintf (const __FlashStringHelper *format, va_list ap) |
| |
|
int | vprintf (const char *format, va_list ap) |
| |
|
virtual void | flush () |
| |