-
Notifications
You must be signed in to change notification settings - Fork 1
add blind spot #11
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
Open
parahybaja-punchClock
wants to merge
42
commits into
v5
Choose a base branch
from
develop-blind_spot
base: v5
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add blind spot #11
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
f694c0b
add blind spot
parahybaja-punchClock ad74cf3
Modify in process
parahybaja-punchClock 16bdb57
add project IDE
Flaviano-Junior 566c1f1
Insert project for accelerometer
Flaviano-Junior 51cef18
Delete project test_i2c
Flaviano-Junior 1494caa
add PCNT fisrt version
Jefferson-Lopes 5c74f4a
move speedometer to component
Jefferson-Lopes b66e057
create RPM task
Jefferson-Lopes c776614
fix MPU upside down mounting
Jefferson-Lopes 0e19337
fix read queue overflow
Jefferson-Lopes 071554b
fix variable type bug and add pcnt protection
Jefferson-Lopes a29020e
add more space to tasks
Jefferson-Lopes 11f71ba
add calibration and offset
Jefferson-Lopes 4be6f30
call MPU calibration
Jefferson-Lopes 16d0139
update calculo
Vitorluca f72fd1e
Inserted cod of 4x4
Flaviano-Junior f265707
update nextion variables
marilira 5aa8633
remove dark page
marilira 0c98798
add enduro touch event
marilira c92d88e
add timer nextion configs
marilira b76d1ec
add enduro page functionalities
marilira 779fc24
developed timer
parahybaja-punchClock 1f18b83
Merge remote-tracking branch 'upstream/develop-timer' into develop-ma
parahybaja-punchClock 3e2b086
refactoring
parahybaja-punchClock 83ca8e9
refactoring 2
parahybaja-punchClock f2236e4
timer padding addded
parahybaja-punchClock 32d8299
changed timer to decrement
parahybaja-punchClock 0853c80
define more nextion variables
marilira 8b6eef6
add lap functions
marilira c6eece6
fix lap variables
marilira 82cd2b7
monitoring task creat
Raynoan-emilly 668b30a
Add a 4x4 in system
Raynoan-emilly bd31a11
4x4 ativing and desativing add at the system
Raynoan-emilly 56b415e
Merge remote-tracking branch 'origin/develop-ma' into develop-flav
Raynoan-emilly d65fc77
changes for 4x4 and qh lap of timer
Raynoan-emilly f7fdec1
add dynamics radios to speeedometer
Raynoan-emilly 7389ed1
add names and versions of the code
Raynoan-emilly 4280897
Add infrared value
Raynoan-emilly 9621ad8
add changes main
Raynoan-emilly f8c0788
changed button ids and esp-idf version
Raynoan-emilly f5db74e
Merge pull request #23 from Parahybaja/develop-blind_spot
Raynoan-emilly 7cb9686
Merge pull request #24 from Parahybaja/develop-flav
Raynoan-emilly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| idf_component_register( | ||
| SRCS "src/blind_spot.c" | ||
| INCLUDE_DIRS "include" | ||
| REQUIRES system driver | ||
| ) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| version: "0.1.0" | ||
| description: "task example" | ||
| url: "https://github.com/Parahybaja/firmware" | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| /** | ||
| * @file task_blind_spot.h | ||
| * @author Flaviano Medeiros da Silva Júnior ([email protected]) | ||
| * @brief task blind spot | ||
| * @version 0.1 | ||
| * @date 2024-01-22 | ||
| * | ||
| * @copyright Copyright (c) 2024 | ||
| * | ||
| * Version Modified By Date Comments | ||
| * ------- ------------- ---------- ----------- | ||
| * 0.1.0 Flaviano Jr. 22/01/2024 first version | ||
| * | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "system.h" | ||
| #include "driver/gpio.h" | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
||
| void task_blind_spot(void*); | ||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #include "task/blind_spot.h" | ||
|
|
||
| static const char *TAG = "blind_spot"; | ||
|
|
||
| void task_blind_spot(void *arg){ | ||
| (void)arg; | ||
|
|
||
| const gpio_num_t gpio_pin = (gpio_num_t)arg; | ||
|
|
||
| // -----config gpio----- | ||
| //zero-initialize the config structure. | ||
| gpio_config_t io_conf = {}; | ||
| //disable interrupt | ||
| io_conf.intr_type = GPIO_INTR_DISABLE; | ||
| //set as output mode | ||
| io_conf.mode = GPIO_MODE_INPUT; | ||
| //bit mask of the pins that you want to set | ||
| io_conf.pin_bit_mask = (1ULL<<gpio_pin); | ||
| //disable pull-down mode | ||
| io_conf.pull_down_en = false; | ||
| //disable pull-up mode | ||
| io_conf.pull_up_en = false; | ||
| //configure GPIO with the given settings | ||
| ESP_ERROR_CHECK(gpio_config(&io_conf)); | ||
|
|
||
| task_remaining_space(); | ||
|
|
||
| for (;;) { | ||
| // do something | ||
|
||
| ESP_LOGI(TAG, "CPU Blind Spot"); | ||
| gpio_set_level(gpio_pin, true); | ||
|
||
|
|
||
| vTaskDelay(pdMS_TO_TICKS(1000)); | ||
| } | ||
| } | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update description