Skip to content

Experimental #28

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
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file modified built-versions/experimental/STM32Gimbal.USB.bin
Binary file not shown.
Binary file modified built-versions/experimental/STM32Gimbal.bin
Binary file not shown.
7,416 changes: 3,731 additions & 3,685 deletions built-versions/experimental/STM32Gimbal.hex

Large diffs are not rendered by default.

Binary file modified built-versions/experimental/STM32Gimbal.zip
Binary file not shown.
674 changes: 674 additions & 0 deletions gpl.txt

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion history.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,7 @@
- The gyro scale has been corrected to be the right value for a 250d/sec gyro setup
- engine.c was corrected to maintain all values in Radians


20131028
- added GPL license to sources
- fixed pitch axis when angle is greater than 50 degrees, allows corrected angles to be 90 degrees of greater
- added I to the PD routines and include a limiting feature
33 changes: 27 additions & 6 deletions src/adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,31 @@
* Created on: Jun 25, 2013
* Author: Denis aka caat
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#include <stdint.h>
#include "adc.h"
#include "stm32f10x_adc.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x.h"

void ADC_Config(void)
{
Expand All @@ -33,9 +54,9 @@ void ADC_Config(void)
ADC_InitStructure.ADC_Mode = ADC_Mode_Independent;
/* Disable the scan conversion so we do one at a time */
ADC_InitStructure.ADC_ScanConvMode = DISABLE;
/* Don't do contimuous conversions - do them on demand */
/* Don't do continuous conversions - do them on demand */
ADC_InitStructure.ADC_ContinuousConvMode = DISABLE;
/* Start conversin by software, not an external trigger */
/* Start conversion by software, not an external trigger */
ADC_InitStructure.ADC_ExternalTrigConv = ADC_ExternalTrigConv_None;
/* Conversions are 12 bit - put them in the lower 12 bits of the result */
ADC_InitStructure.ADC_DataAlign = ADC_DataAlign_Right;
Expand All @@ -47,13 +68,13 @@ void ADC_Config(void)
/* Enable ADC1 */
ADC_Cmd(ADC1, ENABLE);

/* Enable ADC1 reset calibaration register */
/* Enable ADC1 reset calibration register */
ADC_ResetCalibration(ADC1);

/* Check the end of ADC1 reset calibration register */
while (ADC_GetResetCalibrationStatus(ADC1));

/* Start ADC1 calibaration */
/* Start ADC1 calibration */
ADC_StartCalibration(ADC1);

/* Check the end of ADC1 calibration */
Expand Down
22 changes: 22 additions & 0 deletions src/adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@
* Created on: Jun 25, 2013
* Author: Denis aka caat
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef ADC_H_
#define ADC_H_

Expand Down
22 changes: 22 additions & 0 deletions src/comio.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@
* Created on: Aug 1, 2013
* Author: ala42
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
Expand Down
21 changes: 21 additions & 0 deletions src/comio.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@
* Author: ala42
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef COMIO_H_
#define COMIO_H_

Expand Down
24 changes: 23 additions & 1 deletion src/commhandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@
*
* extracted code from main.c
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#include <stdint.h>
#include "main.h"
#include "config.h"
Expand Down Expand Up @@ -35,7 +57,7 @@ void CommHandler(void) //UART4 Interrupt handler implementation
{
case 'a':
debugAutoPan ^= 1;
print("Autopan messages %s\r\n", debugOrient ? "on" : "off");
print("Autopan messages %s\r\n", debugAutoPan ? "on" : "off");
break;

case 'b':
Expand Down
21 changes: 21 additions & 0 deletions src/commhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@
* extracted code from main.c
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef COMMHANDLER_H_
#define COMMHANDLER_H_

Expand Down
22 changes: 22 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@
* Created on: Jun 25, 2013
* Author: Denis caat
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#include <stdint.h>
#include "config.h"
#include "utils.h"
Expand Down
21 changes: 21 additions & 0 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@
* Author: Denis caat
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef CONFIG_H_
#define CONFIG_H_

Expand Down
21 changes: 21 additions & 0 deletions src/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@
* Author: Paul Phillips
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef DEFINITIONS_H_
#define DEFINITIONS_H_

Expand Down
22 changes: 22 additions & 0 deletions src/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@
* Created on: Jun 25, 2013
* Author: Denis aka caat
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#include "stdint.h"
#include "eeprom.h"
#include "utils.h"
Expand Down
21 changes: 21 additions & 0 deletions src/eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@
* Author: Denis aka caat
*/

/*
Original work Copyright (c) 2012 [Evaldis - RCG user name]
Modified work Copyright 2012 Alan K. Adamson

This file is part of EvvGC.

EvvGC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EvvGC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EvvGC. If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef EEPROM_H_
#define EEPROM_H_

Expand Down
Loading