Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
a5e59148
Commit
a5e59148
authored
1 year ago
by
dx
Browse files
Options
Downloads
Patches
Plain Diff
Spirals win and become the new default for proto6
parent
bbe070e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5650
passed
1 year ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
components/badge23/Kconfig
+1
-1
1 addition, 1 deletion
components/badge23/Kconfig
components/badge23/captouch.c
+16
-2
16 additions, 2 deletions
components/badge23/captouch.c
idf_ext.py
+3
-3
3 additions, 3 deletions
idf_ext.py
with
20 additions
and
6 deletions
components/badge23/Kconfig
+
1
−
1
View file @
a5e59148
...
...
@@ -31,7 +31,7 @@ menu "Badge23 Config"
choice BADGE23_TOP_BOARD_STYLE
prompt "Badge23 top board style (mainly for proto6)"
default BADGE23_TOP_BOARD_SPI
KE
S
default BADGE23_TOP_BOARD_SPI
RAL
S
config BADGE23_TOP_BOARD_SPIKES
help
Spikes between captouch pads
...
...
This diff is collapsed.
Click to expand it.
components/badge23/captouch.c
+
16
−
2
View file @
a5e59148
...
...
@@ -302,7 +302,15 @@ int32_t captouch_get_petal_rad(uint8_t petal){
return
(
left
+
right
)
/
2
-
base
;
}
#elif defined(CONFIG_BADGE23_TOP_BOARD_SPIRALS)
#error captouch_get_petal_rad not implemented for spirals
if
(
cf
==
0
b1110
){
//CCW, CW, BASE
int32_t
left
=
petals
[
petal
].
cdc_values
[
PETAL_PAD_CCW
];
left
-=
petals
[
petal
].
amb_values
[
PETAL_PAD_CCW
];
int32_t
right
=
petals
[
petal
].
cdc_values
[
PETAL_PAD_CW
];
right
-=
petals
[
petal
].
amb_values
[
PETAL_PAD_CW
];
int32_t
base
=
petals
[
petal
].
cdc_values
[
PETAL_PAD_BASE
];
base
-=
petals
[
petal
].
amb_values
[
PETAL_PAD_BASE
];
return
(
left
+
right
)
/
2
-
base
;
}
#endif
if
(
cf
==
0
b111
){
//CCW, CW, TIP
int32_t
left
=
petals
[
petal
].
cdc_values
[
PETAL_PAD_CCW
];
...
...
@@ -340,7 +348,13 @@ int32_t captouch_get_petal_phi(uint8_t petal){
return
left
-
right
;
}
#elif defined(CONFIG_BADGE23_TOP_BOARD_SPIRALS)
#error captouch_get_petal_phi not implemented for spirals
if
((
cf
==
0
b1110
)
||
(
cf
==
0
b110
)
||
(
cf
==
0
b111
)){
//CCW, CW, (BASE)
int32_t
left
=
petals
[
petal
].
cdc_values
[
PETAL_PAD_CCW
];
left
-=
petals
[
petal
].
amb_values
[
PETAL_PAD_CCW
];
int32_t
right
=
petals
[
petal
].
cdc_values
[
PETAL_PAD_CW
];
right
-=
petals
[
petal
].
amb_values
[
PETAL_PAD_CW
];
return
left
-
right
;
}
#endif
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
idf_ext.py
+
3
−
3
View file @
a5e59148
...
...
@@ -18,7 +18,7 @@ def action_extensions(base_actions, project_path=os.getcwd()):
'
p3
'
:
[
'
proto3
'
],
'
p4
'
:
[
'
proto4
'
],
'
p6
'
:
[
'
proto6
'
],
'
p6spi
ral
'
:
[
'
proto6-spi
ral
'
],
'
p6spi
ke
'
:
[
'
proto6-spi
ke
'
],
}
def
generation_callback
(
ctx
,
global_args
,
tasks
):
...
...
@@ -52,9 +52,9 @@ def action_extensions(base_actions, project_path=os.getcwd()):
sdkconfig_defaults_path
=
os
.
path
.
join
(
project_path
,
'
sdkconfig.defaults
'
)
sdkconfig_generated_path
=
os
.
path
.
join
(
project_path
,
'
.sdkconfig.defaults.generated
'
)
with
open
(
sdkconfig_generated_path
,
'
w
'
)
as
f
:
if
name
==
'
p6spi
ral
'
:
if
name
==
'
p6spi
ke
'
:
f
.
write
(
'
CONFIG_BADGE23_HW_GEN_P6=y
\n
'
)
f
.
write
(
'
CONFIG_BADGE23_TOP_BOARD_SPI
RAL
S=y
\n
'
)
f
.
write
(
'
CONFIG_BADGE23_TOP_BOARD_SPI
KE
S=y
\n
'
)
else
:
f
.
write
(
f
'
CONFIG_BADGE23_HW_GEN_
{
name
.
upper
()
}
=y
\n
'
)
with
open
(
sdkconfig_defaults_path
)
as
f2
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment