Major site overhaul: resources hub, content migration, new blog posts, forms
- Redesign /resources as sectioned hub with category pages - Migrate 645 Squarespace CDN images to local /images/content/ - Create 9 new news/blog posts with event photos - Fix blog post slugs (rename gibberish filenames) - Rename Design Blog to Design Blogs across site - Remove education page, replace with Platform in nav - Redesign rover repair request form with dynamic rover entries - Add school search combobox to contact, store, and repair forms - Extract shared KNOWN_SCHOOLS data - Make /rover-expansion-3d-printing dynamically pull from MDX - Add related resources sections to product pages - Fix homepage broken /quote links to /store - Store page: sample kit cards, inline quote builder, mailing list opt-in
This commit is contained in:
@@ -15,7 +15,7 @@ First, find some grain-like material, for example, jewellery beads or seeds. The
|
||||
|
||||
### Here’s Our Approach
|
||||
|
||||
**Constant - **A constant is a variable that never changes when the code is run. In python, we write this in all capitals with underscores between words.
|
||||
**Constant -** A constant is a variable that never changes when the code is run. In python, we write this in all capitals with underscores between words.
|
||||
|
||||
#### Digger
|
||||
|
||||
@@ -51,7 +51,7 @@ Servo interpolation is a technique we implemented to smooth out the servo moveme
|
||||
|
||||
#### 1) Setting the Constants:
|
||||
|
||||

|
||||

|
||||
|
||||
First, we set the constants for the two servos on the digger.
|
||||
|
||||
@@ -79,7 +79,7 @@ The constants we have provided might need to be tweaked for your specific rover.
|
||||
|
||||
**2) Define the Functions:**
|
||||
|
||||

|
||||

|
||||
|
||||
Next, we’ll make some functions to make operating the arm easier. The three functions to be defined are ‘Up’, ‘Tip’, and ‘Down. We define these functions simply to make the code cleaner. Each function is in charge of moving the servos to the correct positions to move the arm up, down, and to tip.
|
||||
|
||||
@@ -87,13 +87,13 @@ It can help to look at section (1) and see the constants are grouped in each of
|
||||
|
||||
#### **3) Prepare the Servos:**
|
||||
|
||||

|
||||

|
||||
|
||||
Back in the main code, start by setting the down position on the digger.
|
||||
|
||||
#### **4) Make Your Routine:**
|
||||
|
||||

|
||||

|
||||
|
||||
From here, you can choose how your digger operates depending on the layout of the construction site. Make sure to use the functions when making your sequence. The digger in our example acts out the following sequence:
|
||||
|
||||
@@ -115,7 +115,7 @@ From here, you can choose how your digger operates depending on the layout of th
|
||||
|
||||
Note that the ‘slow_servo’ function is not included in this snippet.
|
||||
|
||||

|
||||

|
||||
|
||||
####
|
||||
|
||||
@@ -123,19 +123,19 @@ Note that the ‘slow_servo’ function is not included in this snippet.
|
||||
|
||||
#### 1) Setting the Constants:
|
||||
|
||||

|
||||

|
||||
|
||||
Similar to the digger, we need to set the tipper servo positions. ‘tip_up’ is when the tray is fully tipped, and ‘tip_rest’ is the resting position of the tray.
|
||||
|
||||
#### **2) Prepare the Servos:**
|
||||
|
||||

|
||||

|
||||
|
||||
The servo is set to the rest position.
|
||||
|
||||
#### **3) Make Your Routine:**
|
||||
|
||||

|
||||

|
||||
|
||||
From here, you can choose how your tipper operates depending on the layout of the construction site. The tipper in our example acts out the following sequence after being loaded:
|
||||
|
||||
@@ -149,66 +149,8 @@ From here, you can choose how your tipper operates depending on the layout of th
|
||||
|
||||
#### Complete Code:
|
||||
|
||||

|
||||

|
||||
|
||||
#### Tip:
|
||||
|
||||
Feel free to use the sensors on the robots to make your way around the construction site. Add tape on the ground for line follow and walls for proximity sensing. Additionally, the loads don’t have to be grain-like either. Try using the digger to load up a meloncube.
|
||||
|
||||
### Related Posts
|
||||
|
||||
Resources
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
[Creating A Sumo Unit For Your Digital Technologies Class](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
How to run a sumo unit in your digital technologies classroom.
|
||||
|
||||
[Read More →](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
[The Ultrasonic Sensor](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
Learn all about the ultrasonic sensor!
|
||||
|
||||
[Read More →](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
[Case Study: Year 7 Digital Tech at St Peters Lutheran College](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
See how Meg Foley at St Peters conducted a challenge for their Year 7s using Micromelon.
|
||||
|
||||
[Read More →](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
Reference in New Issue
Block a user