Skip to content

Commit 8844974

Browse files
committed
version 2.1
1 parent ef38bff commit 8844974

File tree

102 files changed

+3877
-1648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+3877
-1648
lines changed

_includes/js/custom.js

Lines changed: 62 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,22 @@ var defines =[
3636
"M_PWM",
3737
"M_OC",
3838
"OC_ADJ",
39-
"SPI_MODE0"
39+
"SPI_MODE0",
40+
"_MON_TARGET",
41+
"_MON_VOLT_Q",
42+
"_MON_VOLT_D",
43+
"_MON_CURR_Q",
44+
"_MON_CURR_D",
45+
"_MON_VEL",
46+
"_MON_ANGLE",
47+
"_ACTIVE",
48+
"_HIGH_IMPEDANCE",
49+
"_HIGH_Z",
50+
"_PI",
51+
"_2PI",
52+
"HIGH",
53+
"LOW",
54+
"DEF_VEL_LIM"
4055
]
4156

4257
var classNames = [
@@ -45,6 +60,7 @@ var classNames = [
4560
"BLDCDriver3PWM",
4661
"BLDCDriver6PWM",
4762
"StepperDriver4PWM",
63+
"StepperDriver2PWM",
4864
"Encoder",
4965
"MagneticSensor",
5066
"MagneticSensorSPI",
@@ -58,7 +74,11 @@ var classNames = [
5874
"Wire",
5975
"SPIClass",
6076
"LowPassFilter",
61-
"PIDController"
77+
"PIDController",
78+
"InlineCurrentSense",
79+
"CurrentSense",
80+
"StepDirListener",
81+
"Commander"
6282
];
6383

6484
var classProps = [
@@ -76,7 +96,8 @@ var classProps = [
7696
"voltage_power_supply",
7797
"index_search_velocity",
7898
"controller",
79-
"velocity_limit"
99+
"velocity_limit",
100+
"skip_align"
80101
];
81102

82103
var funcNames = [
@@ -103,10 +124,7 @@ var funcNames = [
103124
"controllerLQR",
104125
"sign",
105126
"shaftVelocity",
106-
"initRelativeZero",
107-
"initAbsoluteZero",
108-
"needsAbsoluteZeroSearch",
109-
"hasAbsoluteZero",
127+
"needsSearch",
110128
"command",
111129
"setPhaseVoltage",
112130
"_delay",
@@ -126,7 +144,22 @@ var funcNames = [
126144
"disable",
127145
"pinMode",
128146
"digitalWrite",
129-
"constrain"
147+
"constrain",
148+
"linkCurrentSense",
149+
"getCurrent",
150+
"getPhaseCurrents",
151+
"getFOCCurrents",
152+
"driverAlign",
153+
"setPhaseState",
154+
"handle",
155+
"enableInterrupt",
156+
"getValue",
157+
"attach",
158+
"run",
159+
"add",
160+
"pid",
161+
"lpf",
162+
"scalar"
130163

131164
];
132165
var structNames = [
@@ -135,7 +168,14 @@ var structNames = [
135168
"ControlType",
136169
"FOCModulationType",
137170
"MagneticSensorSPIConfig_s",
138-
"MagneticSensorI2CConfig_s"
171+
"MagneticSensorI2CConfig_s",
172+
"PhaseCurrent_s",
173+
"DQCurrent_s",
174+
"TorqueControlType",
175+
"MotionControlType",
176+
"Direction",
177+
"DQVoltage_s",
178+
"VerboseMode"
139179
];
140180
var structProps = [
141181
"EXTERN",
@@ -150,7 +190,15 @@ var structProps = [
150190
"SpaceVectorPWM",
151191
"SinePWM",
152192
"Trapesoid_120",
153-
"Trapesoid_150"
193+
"Trapesoid_150",
194+
"dc_current",
195+
"foc_current",
196+
"torque",
197+
"CW",
198+
"CCW",
199+
"nothing",
200+
"on_request",
201+
"user_friendly"
154202
];
155203
jtd.onReady(function(){
156204
document.querySelectorAll('.n').forEach(function(e) {
@@ -169,6 +217,9 @@ jtd.onReady(function(){
169217
} else if(classProps.indexOf(e.innerHTML) >= 0 ){
170218
e.classList.remove("n");
171219
e.classList.add("classProps");
220+
}else if(defines.indexOf(e.innerHTML) >= 0 ){
221+
e.classList.remove("n");
222+
e.classList.add("defines");
172223
}
173224
});
174225

@@ -183,7 +234,7 @@ jtd.onReady(function(){
183234

184235
// show defines
185236
defines.forEach(function(def){
186-
str = str.replace( def ,"<span class='kt'>" +def + "</span>" );
237+
str = str.replace( def ,"<span class='defines'>" +def + "</span>" );
187238
});
188239

189240

_sass/overrides.scss

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ span.incLib{
2828
color: #ffe3b4;
2929
font-style: italic;
3030
}
31-
31+
.defines{
32+
color: #c7a56f;
33+
font-style: italic;
34+
font-weight: bold;
35+
}
3236
// custom highlight color change
3337
.highlight{
3438
line-height: 1;
@@ -69,7 +73,9 @@ div.language-sh pre, div.language-sh code ,div.language-shell pre, div.languag
6973
.highlight .nl{
7074
color: #268bd2;
7175
}
72-
76+
.highlight .nb{
77+
color: #2aa198;
78+
}
7379

7480
.head-custom{
7581
font-family: 'Roboto', sans-serif;
@@ -86,6 +92,9 @@ div.language-sh pre, div.language-sh code ,div.language-shell pre, div.languag
8692
.foc{
8793
color: #44a8fa;
8894
}
95+
.power{
96+
font-weight: bold;
97+
}
8998
.site-title {
9099
padding-left: 0.5rem;
91100
padding-right: 0.5rem;
@@ -152,6 +161,9 @@ div.language-sh pre, div.language-sh code ,div.language-shell pre, div.languag
152161
.width80{
153162
width:80%;
154163
}
164+
.img100{
165+
height: 100px;
166+
}
155167
.img200{
156168
height: 200px;
157169
}
@@ -189,6 +201,10 @@ div.language-sh pre, div.language-sh code ,div.language-shell pre, div.languag
189201
height:inherit;
190202
width: 100%;
191203
}
204+
.img100{
205+
height:inherit;
206+
width: 100%;
207+
}
192208
.width80{
193209
width:100%;
194210
}

0 commit comments

Comments
 (0)