9#ifndef wb_giraff_main_serial_h
10#define wb_giraff_main_serial_h
80 PROPERTY(int16_t, padding)
98 CONTROL_BIT(movement_type)
101 CONTROL_BIT(acceleration)
104 CONTROL_BIT(position)
107 CONTROL_BIT(coord_type)
110 CONTROL_BIT(head_angle)
113 CONTROL_BIT(max_gear_ratio)
116 CONTROL_BIT(gear_ratio_increments)
119 CONTROL_BIT(gear_ratio_slowdown_dist)
122 CONTROL_BIT(current_gear_ratio)
125 CONTROL_BIT(red_button_presses)
128 CONTROL_BIT(blue_button_presses)
131 CONTROL_BIT(dial_increments)
134 CONTROL_BIT(left_motor_encoder_ticks)
137 CONTROL_BIT(right_motor_encoder_ticks)
140 CONTROL_BIT(head_motor_encoder_ticks)
143 PROPERTY(int16_t, padding2)
151 memset(
this, 0,
sizeof(*
this));
Serial interface for the main giraff board.
CONTROLLED_PROPERTY(float, velocity) CONTROLLED_PROPERTY(enum Giraff_MovementType
Giraff maximum velocity , Unit: m/s, Range: 0.0 / 150.0, Setter: Yes, Getter: Yes.
movement_type position head_angle gear_ratio_increments current_gear_ratio blue_button_presses padding right_motor_encoder_ticks padding2 wb_giraff_main_serial()
stuct constructor
Giraff_CoordType
Controls when position uses relative and absolute distances (absolute is based on odometry and is res...
@ BufferedAbsolute_Coords
Distances are absolute however commands are blocking and wait for previous commands to finish (buffer...
@ Relative_Coords
Distances passed to position are relative to the current position.
@ Absolute_Coords
Distances to be are relative to the odometry zero position (odometry is reset when this is toggled to...
Giraff_MovementType
/file wb_giraff_main_serial.h
@ Rotation
Giraff rotates when position is set (deg/sec)
@ Arc
Giraff arcs based on vg and position (position forward and backwards (m/s) and vg controls the wheel ...
@ Straight
Giraff moves forward and backwards via position (m/sec)