Skip to content

Commit

Permalink
Merge pull request #1105 from bocchino/math-tutorial
Browse files Browse the repository at this point in the history
Math tutorial
  • Loading branch information
LeStarch authored Nov 17, 2021
2 parents 2bc4658 + d472832 commit d2f2d88
Show file tree
Hide file tree
Showing 87 changed files with 5,943 additions and 10,099 deletions.
41 changes: 11 additions & 30 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ ACTIVERATEGROUPIMPLCFG
ACTIVERATEGROUPIMPLTESTER
ACTIVETEXTLOGGERIMPL
actools
acwrap
acxz
addoffset
addon
adminlist
adoc
aeiouy
afterstatinfo
agg
Expand Down Expand Up @@ -67,6 +67,7 @@ arijitdas
arinc
arity
arpa
asciidoctor
asm
aspx
ASTRING
Expand Down Expand Up @@ -205,7 +206,6 @@ closedir
CLOSEFILE
cloudbees
cls
cmak
cmake
cmath
Cmdd
Expand Down Expand Up @@ -241,7 +241,6 @@ config
configparser
configurability
configurator
Connectedoutput
cookiecutter
cooldown
coor
Expand Down Expand Up @@ -336,7 +335,6 @@ deserialized
deserializing
dest
DEVNULL
dfdc
DFL
DFPRIME
DGRAM
Expand All @@ -346,7 +344,6 @@ diafile
dictgen
dicts
dictvalue
differend
difflib
diffs
diles
Expand Down Expand Up @@ -416,7 +413,6 @@ dylib
EACCES
EAGAIN
eay
eb
EBADF
EBUSY
ECLIPSEHELP
Expand Down Expand Up @@ -495,7 +491,6 @@ exitcode
expandtabs
expr
exprtokens
EXTN
Fabcdef
FADV
fadvise
Expand All @@ -513,7 +508,7 @@ fflush
Ffs
fgetc
fgets
FH
fh
filecmp
filedown
FILEDOWNLINK
Expand All @@ -529,15 +524,12 @@ finalizer
findall
fio
Firefox
Fixme
Fixme
FIXME
fixme
flist
FNDELAY
fnmatch
fno
fns
followd
FONTNAME
FONTPATH
FONTSIZE
Expand All @@ -561,6 +553,7 @@ fprintf
fprofile
fptr
fputil
fpv
frontend
frox
frsize
Expand Down Expand Up @@ -752,7 +745,7 @@ integertypename
interoperability
intlimits
ints
inttype
Inttype
invisi
ioc
ioctl
Expand Down Expand Up @@ -847,16 +840,13 @@ len
lestarch
levelname
lflag
lgcov
lgtm
lhash
libasan
libc
libclang
libcrc
libgtest
libiconv
libsan
LIBLOC
lic
lifecycle
Expand All @@ -877,7 +867,6 @@ ljust
lkml
lld
llvm
llx
loadfile
localhost
localtime
Expand Down Expand Up @@ -992,6 +981,7 @@ mstat
mstring
MTIME
mtype
mul
multiline
multioptionals
multirequired
Expand Down Expand Up @@ -1037,6 +1027,7 @@ nmsgs
noargport
NOCOLOR
NOCTTY
nodemon
nogen
nolog
nomagic
Expand All @@ -1048,7 +1039,6 @@ Nop
noreturn
normalwidths
normpath
nosetests
NOSIZE
NOSPEC
nostdlib
Expand Down Expand Up @@ -1082,7 +1072,6 @@ OMG
OMG's
onchange
onlinepubs
OParg
OPCODEBASE
opcodes
opendir
Expand Down Expand Up @@ -1128,7 +1117,6 @@ params
PARENB
PARODD
parseable
PASSIVEC
pathmaker
pbuild
pcmake
Expand All @@ -1146,7 +1134,6 @@ phtml
pid
PINGSEND
pinit
pipsetup
pkill
pkts
plainnat
Expand Down Expand Up @@ -1213,7 +1200,6 @@ ptbool
ptestrun
ptf
pthread
PTLM
ptmcg
pton
ptr
Expand All @@ -1234,7 +1220,6 @@ Pymodule
pyparsing
PYPI
pytest
PYTHON
PYTHONPATH
pyw
qch
Expand Down Expand Up @@ -1360,7 +1345,6 @@ seqgen
serafin
serializables
serializer
serialns
setaffinity
setattr
setbuf
Expand All @@ -1371,12 +1355,9 @@ SETFL
setinheritsched
setitem
SETLOGGING
setname
setop
setopt
setprotocol
setquaternion
setresult
setschedparam
setschedpolicy
setsize
Expand All @@ -1387,7 +1368,6 @@ settime
settingsini
settype
setuptools
setval
setw
sev
sface
Expand Down Expand Up @@ -1439,7 +1419,6 @@ spidev
splitext
splitlines
sprintf
SQL's
Sqlite
sramanan
srand
Expand All @@ -1464,7 +1443,6 @@ startuml
startword
staticmethod
statvfs
stdarg
STDC
stddef
stderr
Expand Down Expand Up @@ -1628,6 +1606,8 @@ tmptokens
tmptree
tname
tnum
toc
toclevels
toctree
todo
TODOLIST
Expand Down Expand Up @@ -1743,6 +1723,7 @@ vla
vlist
vm
VMIN
vn
vsnprintf
VTIME
vtype
Expand Down
20 changes: 10 additions & 10 deletions Autocoders/Python/src/fprime_ac/generators/templates/impl/cpp.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ======================================================================
// \title ${name}ComponentImpl.cpp
// \title ${name}.cpp
// \author $user
// \brief cpp file for ${name} component implementation class
//
Expand All @@ -11,7 +11,7 @@
// ======================================================================


\#include <${include_path}/${name}ComponentImpl.hpp>
\#include <${include_path}/${name}.hpp>
\#include "Fw/Types/BasicTypes.hpp"

#if $namespace_list != None
Expand All @@ -24,15 +24,15 @@ namespace ${namespace} {
// Construction, initialization, and destruction
// ----------------------------------------------------------------------

${name}ComponentImpl ::
${name}ComponentImpl(
${name} ::
${name}(
$emit_non_port_params([ $param_compName ])
) : ${component_base}(compName)
{

}

void ${name}ComponentImpl ::
void ${name} ::
init(
$emit_non_port_params($params_init_cpp)
)
Expand All @@ -46,8 +46,8 @@ $emit_non_port_params($params_init_cpp)
#end if
}

${name}ComponentImpl ::
~${name}ComponentImpl()
${name} ::
~${name}()
{

}
Expand All @@ -59,7 +59,7 @@ $emit_non_port_params($params_init_cpp)

#for $instance, $type, $sync, $priority, $full, $role, $max_num in $typed_user_input_ports:
#set $return_type = $port_return_type_strs[$instance]
${return_type}${name}ComponentImpl ::
${return_type}${name} ::
${instance}_handler(
$emit_port_params([ $param_portNum ] + $port_params[instance])
)
Expand All @@ -79,7 +79,7 @@ $emit_port_params([ $param_portNum ] + $port_params[instance])
// ----------------------------------------------------------------------

#for $instance, $sync, $priority, $full, $max_num in $serial_input_ports:
void ${name}ComponentImpl ::
void ${name} ::
${instance}_handler(
NATIVE_INT_TYPE portNum, $doxygen_post_comment("The port number")
Fw::SerializeBufferBase &Buffer $doxygen_post_comment("The serialization buffer")
Expand All @@ -97,7 +97,7 @@ $emit_port_params([ $param_portNum ] + $port_params[instance])

#for $mnemonic, $opcode, $sync, $priority, $full, $comment in $commands:
#set $params = $command_params[$mnemonic]
void ${name}ComponentImpl ::
void ${name} ::
${mnemonic}_cmdHandler(
$emit_non_port_params([ $param_opCode, $param_cmdSeq ] + $params)
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ======================================================================
// \title ${name}ComponentImpl.hpp
// \title ${name}.hpp
// \author $user
// \brief hpp file for ${name} component implementation class
//
Expand All @@ -21,7 +21,7 @@ namespace ${namespace} {
#end for
#end if

class ${name}ComponentImpl :
class ${name} :
public $component_base
{

Expand All @@ -33,7 +33,7 @@ namespace ${namespace} {

//! Construct object $name
//!
${name}ComponentImpl(
${name}(
$emit_non_port_params([ $param_compName ])
);

Expand All @@ -45,7 +45,7 @@ $emit_non_port_params($params_init_hpp)

//! Destroy object $name
//!
~${name}ComponentImpl();
~${name}();

#if len($typed_user_input_ports) > 0:
PRIVATE:
Expand Down
2 changes: 0 additions & 2 deletions Ref/Top/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
set(SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/instances.fpp"
"${CMAKE_CURRENT_LIST_DIR}/topology.fpp"
# "${CMAKE_CURRENT_LIST_DIR}/RefTopologyAc.cpp"
# "${CMAKE_CURRENT_LIST_DIR}/RefTopologyAppAi.xml"
"${CMAKE_CURRENT_LIST_DIR}/RefTopologyDefs.cpp"
)
set(MOD_DEPS
Expand Down
6 changes: 3 additions & 3 deletions Ref/Top/FppConstantsAc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// All rights reserved.
// ======================================================================

#ifndef RefTop_FppConstantsAc_HPP
#define RefTop_FppConstantsAc_HPP
#ifndef Ref_Top_FppConstantsAc_HPP
#define Ref_Top_FppConstantsAc_HPP

#include "Fw/Types/BasicTypes.hpp"

Expand All @@ -23,7 +23,7 @@ namespace Ref {
};

enum FppConstant_stackSize {
stackSize = 10240
stackSize = 16384
};

}
Expand Down
Loading

0 comments on commit d2f2d88

Please sign in to comment.