@@ -24,43 +24,37 @@ typedef struct _pbio_drivebase_t {
2424
2525pbio_error_t pbio_drivebase_get_drivebase (pbio_drivebase_t * * db_address , pbio_servo_t * left , pbio_servo_t * right , int32_t wheel_diameter , int32_t axle_track );
2626
27+ // Drive base status:
28+
2729void pbio_drivebase_update_all (void );
2830bool pbio_drivebase_update_loop_is_running (pbio_drivebase_t * db );
31+ bool pbio_drivebase_is_busy (pbio_drivebase_t * db );
2932
30- // Finite point to point control
33+ // Finite point to point control:
3134
3235pbio_error_t pbio_drivebase_drive_straight (pbio_drivebase_t * db , int32_t distance , pbio_control_on_completion_t on_completion );
33-
3436pbio_error_t pbio_drivebase_drive_curve (pbio_drivebase_t * db , int32_t radius , int32_t angle , pbio_control_on_completion_t on_completion );
3537
36- // Infinite driving
38+ // Infinite driving:
3739
3840pbio_error_t pbio_drivebase_drive_forever (pbio_drivebase_t * db , int32_t speed , int32_t turn_rate );
39-
4041pbio_error_t pbio_drivebase_stop (pbio_drivebase_t * db , pbio_control_on_completion_t on_completion );
4142
42- bool pbio_drivebase_is_busy (pbio_drivebase_t * db );
4343
44- // Measuring and settings
44+ // Measuring and settings:
4545
4646pbio_error_t pbio_drivebase_get_state_user (pbio_drivebase_t * db , int32_t * distance , int32_t * drive_speed , int32_t * angle , int32_t * turn_rate );
47-
4847pbio_error_t pbio_drivebase_get_drive_settings (pbio_drivebase_t * db , int32_t * drive_speed , int32_t * drive_acceleration , int32_t * drive_deceleration , int32_t * turn_rate , int32_t * turn_acceleration , int32_t * turn_deceleration );
49-
5048pbio_error_t pbio_drivebase_set_drive_settings (pbio_drivebase_t * db , int32_t drive_speed , int32_t drive_acceleration , int32_t drive_deceleration , int32_t turn_rate , int32_t turn_acceleration , int32_t turn_deceleration );
5149
5250#if PBIO_CONFIG_DRIVEBASE_SPIKE
5351
54- // SPIKE drive base wrappers
52+ // SPIKE drive base wrappers:
5553
5654pbio_error_t pbio_drivebase_get_drivebase_spike (pbio_drivebase_t * * db_address , pbio_servo_t * left , pbio_servo_t * right );
57-
5855pbio_error_t pbio_drivebase_spike_drive_forever (pbio_drivebase_t * db , int32_t speed_left , int32_t speed_right );
59-
6056pbio_error_t pbio_drivebase_spike_drive_time (pbio_drivebase_t * db , int32_t speed_left , int32_t speed_right , int32_t duration , pbio_control_on_completion_t on_completion );
61-
6257pbio_error_t pbio_drivebase_spike_drive_angle (pbio_drivebase_t * db , int32_t speed_left , int32_t speed_right , int32_t angle , pbio_control_on_completion_t on_completion );
63-
6458pbio_error_t pbio_drivebase_spike_steering_to_tank (int32_t speed , int32_t steering , int32_t * speed_left , int32_t * speed_right );
6559
6660#endif // PBIO_CONFIG_DRIVEBASE_SPIKE
0 commit comments