-
-
Notifications
You must be signed in to change notification settings - Fork 5
0.2.0 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod: sleep 2s after receiving ack from robot
doc: conversions.py out types example: test_meas_units.py
feat: convert_rotational_speed added %rpm and rev/s
get_distance_bottom fix: get methods using conversions must always return floats
mod: increased uart baud
It seems ok
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Release notes 0.2.0
Now all methods, set and get data in centimeters, you can change units by passing the
unit
parameters,Available units are (first is default):
cm
,mm
,m
,inch
deg
,rad
,%
,rev
cm/s
,mm/s
,m/s
,inch/s
,%
deg/s
,rad/s
,%
,rev/s
,rpm
(note: wheel speed default is in RPM)Fixs:
New methods available:
brake
, stops motorsget_color(<format>)
, return normalized color ifformat = 'rgb'
or hsv values ifformat = 'hsv'
get_color_label(<h>, <s>, <v>)
, return the string label of the detected color, such as'red'
color_calibration(<white/black>)
, pass'white'
or'black'
to calibrate upper or lower limitget_distance_top(<unit>)
, return distance above the robot in centimeters, useunit
to change the unitget_distance_bottom(<unit>)
, return distance in the bottom part of robot in centimeters, useunit
to change the unitset_behaviour(<behaviour>)
, set internal behaviours, at the moment0 disable
and1 automatically turn off the illuminator when you lift the robot
set_wheels_position(<left>, <right>, <unit = 'deg'>)
, set position of both wheelsget_wheels_position(<left>, <right>, <unit = 'deg'>)
, get position of both wheelsget_drive_speed(<linear_unit = 'cm/s'>, <angular_unit = 'deg/s'>)
, get drive speedIntroducing color calibration, how to
Generally default parameters could give you issues, so it is suggested to calibrate your sensor.
You need a white surface and a black surface.
Connect your robot to Labs for Micropython and type in REPL terminal:
Now place your robot on the white surface and type:
Now place your robot on the black surface and type:
Press reset on Lab for Micropython.
You can now test using
read_color_sensor.py
in examples folder.