Skip to content
Open
Show file tree
Hide file tree
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 Jan 22, 2024
ad74cf3
Modify in process
parahybaja-punchClock Jan 24, 2024
16bdb57
add project IDE
Flaviano-Junior Jan 29, 2024
566c1f1
Insert project for accelerometer
Flaviano-Junior Feb 22, 2024
51cef18
Delete project test_i2c
Flaviano-Junior Feb 23, 2024
1494caa
add PCNT fisrt version
Jefferson-Lopes Mar 8, 2024
5c74f4a
move speedometer to component
Jefferson-Lopes Mar 8, 2024
b66e057
create RPM task
Jefferson-Lopes Mar 8, 2024
c776614
fix MPU upside down mounting
Jefferson-Lopes Mar 17, 2024
0e19337
fix read queue overflow
Jefferson-Lopes Mar 18, 2024
071554b
fix variable type bug and add pcnt protection
Jefferson-Lopes Mar 18, 2024
a29020e
add more space to tasks
Jefferson-Lopes Mar 18, 2024
11f71ba
add calibration and offset
Jefferson-Lopes Mar 19, 2024
4be6f30
call MPU calibration
Jefferson-Lopes Mar 20, 2024
16d0139
update calculo
Vitorluca Jun 26, 2024
f72fd1e
Inserted cod of 4x4
Flaviano-Junior Aug 2, 2024
f265707
update nextion variables
marilira Sep 19, 2024
5aa8633
remove dark page
marilira Sep 19, 2024
0c98798
add enduro touch event
marilira Sep 19, 2024
c92d88e
add timer nextion configs
marilira Sep 19, 2024
b76d1ec
add enduro page functionalities
marilira Sep 19, 2024
779fc24
developed timer
parahybaja-punchClock Sep 23, 2024
1f18b83
Merge remote-tracking branch 'upstream/develop-timer' into develop-ma
parahybaja-punchClock Sep 23, 2024
3e2b086
refactoring
parahybaja-punchClock Sep 24, 2024
83ca8e9
refactoring 2
parahybaja-punchClock Sep 24, 2024
f2236e4
timer padding addded
parahybaja-punchClock Sep 24, 2024
32d8299
changed timer to decrement
parahybaja-punchClock Sep 24, 2024
0853c80
define more nextion variables
marilira Sep 24, 2024
8b6eef6
add lap functions
marilira Sep 24, 2024
c6eece6
fix lap variables
marilira Sep 24, 2024
82cd2b7
monitoring task creat
Raynoan-emilly Sep 25, 2024
668b30a
Add a 4x4 in system
Raynoan-emilly Sep 25, 2024
bd31a11
4x4 ativing and desativing add at the system
Raynoan-emilly Sep 25, 2024
56b415e
Merge remote-tracking branch 'origin/develop-ma' into develop-flav
Raynoan-emilly Sep 25, 2024
d65fc77
changes for 4x4 and qh lap of timer
Raynoan-emilly Sep 25, 2024
f7fdec1
add dynamics radios to speeedometer
Raynoan-emilly Sep 25, 2024
7389ed1
add names and versions of the code
Raynoan-emilly Sep 25, 2024
4280897
Add infrared value
Raynoan-emilly Sep 26, 2024
9621ad8
add changes main
Raynoan-emilly Sep 26, 2024
f8c0788
changed button ids and esp-idf version
Raynoan-emilly Sep 27, 2024
f5db74e
Merge pull request #23 from Parahybaja/develop-blind_spot
Raynoan-emilly Jan 31, 2025
7cb9686
Merge pull request #24 from Parahybaja/develop-flav
Raynoan-emilly Jan 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions components/blind_spot/CMakeLists.txt
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
)
3 changes: 3 additions & 0 deletions components/blind_spot/idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: "0.1.0"
description: "task example"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update description

url: "https://github.com/Parahybaja/firmware"
29 changes: 29 additions & 0 deletions components/blind_spot/include/task/blind_spot.h
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
35 changes: 35 additions & 0 deletions components/blind_spot/src/blind_spot.c
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unnecessary comments from task example

ESP_LOGI(TAG, "CPU Blind Spot");
gpio_set_level(gpio_pin, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add blind spot logic


vTaskDelay(pdMS_TO_TICKS(1000));
}
}