Skip to content

Commit 13fa9d3

Browse files
committed
FC Align Initial commit
1 parent 15ccdcc commit 13fa9d3

4 files changed

Lines changed: 70 additions & 97 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* FCAlign.cpp
3+
*
4+
* Created on: 13.06.2016
5+
* Author: cem
6+
*/
7+
8+
#include "FCAlign.h"
9+
10+
namespace App
11+
{
12+
13+
} /* namespace App */
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* FCAlign.h
3+
*
4+
* Created on: 13.06.2016
5+
* Author: cem
6+
*/
7+
8+
#ifndef APPLICATION_SOURCE_FCALIGN_H_
9+
#define APPLICATION_SOURCE_FCALIGN_H_
10+
11+
#include "USART.h"
12+
#include "Interrupt.h"
13+
14+
#include "FCAdapter.h"
15+
16+
namespace App
17+
{
18+
19+
/*
20+
*
21+
*/
22+
class FCAlign: public FCAdapter, public HAL::InterruptHandler
23+
{
24+
25+
private:
26+
static const uint8_t TmpReceiveBufferSize = 32;
27+
static const uint8_t ReceiveBufferSize = 128;
28+
static const uint8_t PaketSize = 64;
29+
static const uint8_t PacketContentSize = 38;
30+
static const uint16_t StartSign = 0x6BD2;
31+
32+
HAL::USART& m_usart;
33+
OSAL::EventFlag gotMsg;
34+
uint8_t m_tmpReceiveBuffer[TmpReceiveBufferSize];
35+
uint8_t m_tmpReceiveIndex;
36+
uint8_t m_receiveBuffer[ReceiveBufferSize];
37+
uint8_t m_receiveIndex;
38+
uint8_t m_processIndex;
39+
40+
public:
41+
FCAlign(HAL::USART& usart) :
42+
FCAdapter(), m_usart(usart), m_tmpReceiveBuffer(), m_tmpReceiveIndex(0), m_receiveBuffer(), m_receiveIndex(0), m_processIndex(
43+
0)
44+
{
45+
}
46+
47+
void Init() override;
48+
void Run() override;
49+
void ISR() override;
50+
51+
void DeInit();
52+
};
53+
54+
} /* namespace App */
55+
56+
#endif /* APPLICATION_SOURCE_FCALIGN_H_ */

Hardware/Pro/Requirements.xlsx

580 Bytes
Binary file not shown.

Hardware/Pro/eagle.epf

Lines changed: 1 addition & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -362,102 +362,6 @@ Loc="0 117 1170 877"
362362
State=2
363363
Number=0
364364

365-
[Win_2]
366-
Type="Schematic Editor"
367-
Loc="360 248 959 647"
368-
State=2
369-
Number=2
370-
File="AnySensePro.sch"
371-
View="-7.02259 57.0362 342.303 245.224"
372-
WireWidths=" 0 0.3048 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0.4064 0.1524"
373-
PadDiameters=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0"
374-
PadDrills=" 0.5 0.6 0.7 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 2 2.2 2.8 3.2 0.8"
375-
ViaDiameters=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0"
376-
ViaDrills=" 0.5 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 2 2.2 2.8 3.2 0.6"
377-
HoleDrills=" 0.5 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 2 2.2 2.8 3.2 0.6"
378-
TextSizes=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.9304 2.1844 2.54 3.81 5.08 6.4516 1.778"
379-
PolygonSpacings=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 5.08 6.4516 1.27"
380-
PolygonIsolates=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0"
381-
MiterRadiuss=" 0.254 0.3175 0.635 1.27 2.54 1 2 2.5 5 7.5 10 0"
382-
DimensionWidths=" 0 0.127 0.254 0.1 0.26 0.13"
383-
DimensionExtWidths=" 0.127 0.254 0.1 0.13 0.26 0"
384-
DimensionExtLengths=" 1.27 2.54 1 2 3 0"
385-
DimensionExtOffsets=" 1.27 2.54 1 2 3 0"
386-
SmdSizes=" 0.3048 0.1524 0.4064 0.2032 0.6096 0.3048 0.8128 0.4064 1.016 0.508 1.27 0.6604 1.4224 0.7112 1.6764 0.8128 1.778 0.9144 1.9304 0.9652 2.1844 1.0668 2.54 1.27 3.81 1.9304 5.08 2.54 6.4516 3.2512 1.27 0.635"
387-
WireBend=0
388-
WireBendSet=31
389-
WireCap=1
390-
MiterStyle=0
391-
PadShape=0
392-
ViaShape=0
393-
PolygonPour=0
394-
PolygonRank=0
395-
PolygonThermals=1
396-
PolygonOrphans=0
397-
TextRatio=8
398-
DimensionUnit=1
399-
DimensionPrecision=2
400-
DimensionShowUnit=0
401-
PinDirection=3
402-
PinFunction=0
403-
PinLength=2
404-
PinVisible=3
405-
SwapLevel=0
406-
ArcDirection=0
407-
AddLevel=2
408-
PadsSameType=0
409-
Layer=91
410-
Views=" 1: -7.02259 57.0362 342.303 245.224"
411-
Sheet="1"
412-
413-
[Win_3]
414-
Type="Board Editor"
415-
Loc="360 248 1707 1071"
416-
State=1
417-
Number=1
418-
File="AnySensePro.brd"
419-
View="5.84329 15.3047 22.6184 36.2546"
420-
WireWidths=" 0 0.254 0.3048 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0.4064"
421-
PadDiameters=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0"
422-
PadDrills=" 0.5 0.6 0.7 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 2 2.2 2.8 3.2 0.8"
423-
ViaDiameters=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0"
424-
ViaDrills=" 0.5 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 2 2.2 2.8 3.2 0.6"
425-
HoleDrills=" 0.5 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 2 2.2 2.8 3.2 0.6"
426-
TextSizes=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.9304 2.1844 2.54 3.81 5.08 6.4516 1.778"
427-
PolygonSpacings=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 5.08 6.4516 1.27"
428-
PolygonIsolates=" 0.254 0.3048 0.4064 0.6096 0.8128 1.016 1.27 1.4224 1.6764 1.778 1.9304 2.1844 2.54 3.81 6.4516 0"
429-
MiterRadiuss=" 0.254 0.3175 0.635 1.27 2.54 1 2 2.5 5 7.5 10 0"
430-
DimensionWidths=" 0 0.127 0.254 0.1 0.26 0.13"
431-
DimensionExtWidths=" 0.127 0.254 0.1 0.13 0.26 0"
432-
DimensionExtLengths=" 1.27 2.54 1 2 3 0"
433-
DimensionExtOffsets=" 1.27 2.54 1 2 3 0"
434-
SmdSizes=" 0.3048 0.1524 0.4064 0.2032 0.6096 0.3048 0.8128 0.4064 1.016 0.508 1.27 0.6604 1.4224 0.7112 1.6764 0.8128 1.778 0.9144 1.9304 0.9652 2.1844 1.0668 2.54 1.27 3.81 1.9304 5.08 2.54 6.4516 3.2512 1.27 0.635"
435-
WireBend=0
436-
WireBendSet=0
437-
WireCap=1
438-
MiterStyle=0
439-
PadShape=0
440-
ViaShape=0
441-
PolygonPour=0
442-
PolygonRank=1
443-
PolygonThermals=1
444-
PolygonOrphans=0
445-
TextRatio=8
446-
DimensionUnit=1
447-
DimensionPrecision=2
448-
DimensionShowUnit=0
449-
PinDirection=3
450-
PinFunction=0
451-
PinLength=2
452-
PinVisible=3
453-
SwapLevel=0
454-
ArcDirection=0
455-
AddLevel=2
456-
PadsSameType=0
457-
Layer=16
458-
459365
[Desktop]
460-
Screen="1440 900"
366+
Screen="1920 1200"
461367
Window="Win_1"
462-
Window="Win_2"
463-
Window="Win_3"

0 commit comments

Comments
 (0)