Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Leo Stock
carolocupFirmware
Commits
f17e4d6d
Commit
f17e4d6d
authored
Nov 21, 2018
by
lstoc001
Browse files
commit to merge from master
parent
a4d3de7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
build.sh
View file @
f17e4d6d
#!/bin/bash
SPEEDS
=
"
0.75 1.0 1.5
"
SUFIXS
=
"
_NiMh
_LiPo"
SPEEDS
=
"
1.0
"
SUFIXS
=
"_LiPo"
INSTALLDIR
=
install
function
checkExit
()
{
if
[
$?
!=
0
]
;
then
...
...
include/shm.h
View file @
f17e4d6d
...
...
@@ -231,6 +231,11 @@ extern "C" {
#define SHM_CONTROLL_PID_SCALE 0x120
/* FLOAT recalculation: new = (old * SCALE) + OFFSET */
#define SHM_CONTROLL_PID_OFFSET 0x124
/* FLOAT recalculation: new = (old * SCALE) + OFFSET */
/**
* FLOAT difference in speed
*/
#define SHM_CONTROLL_BRAKE_DIFFERENCE 0x128
/**
* Task Manager Base Address
*/
...
...
src/carolocupFirmware.c
View file @
f17e4d6d
...
...
@@ -40,7 +40,7 @@
#include <controller.h>
#include <taskman.h>
#include <adc_simu.h>
#include
"../mach/am57xx/
ctrl.
c"
#include
<
ctrl.
h>
/* ADD_PWM_SOFTWARE(0); */
...
...
@@ -290,7 +290,7 @@ static void initTask() {
vTaskSuspend
(
NULL
);
}
void
task_checkHandler
(){
static
void
task_checkHandler
(){
vTaskDelay
(
10000
/
portTICK_PERIOD_MS
);
ctrl_checkHandler
();
vTaskSuspend
(
NULL
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment