Arduino Finds the Pole Star
Hello, I present to you the construction of a simple astronomical instrument, an instrument that uses the reverse principle of the sextant. A compass module and an accelerometer detect the cardinal point and position relative to the visible horizon, and a Neo 6M GPS module detects latitude. All three values establish the exact position of the polar star, Polaris, indicated by an SG90 servomotor. The device can only be operated by viewing 2 LEDs with different colors. One for the indicator of the cardinal point and another for the indication of parallelism to the earth's surface. I chose this calibration mode because it is extremely difficult to look at the sky and at an Oled or any other kind of screen at the same time.
Components and supplies
1
Blue LED
1
5mm Red LED
2
470 0hm
1
Servomotor Tower Pro SG 90
1
NEO 6M GPS MODULE
1
Arduino Nano
1
HMC 5883 COMPASS MODUKLE
1
Push Button
1
9 Volts Battery
Tools and machines
1
drill, screwdriver, soldering iron
Apps and platforms
1
Arduino IDE
1
Visuino - Graphical Development Environment for Arduino
Project description
Code
code
1//---------------------------------------------- 2// 3// Sketch Generated by Visuino 4// www.visuino.com 5// Version 8.0.0.101 6// 7//------------------ Source -------------------- 8// 9// test quad.visuino 10// 11//---------------------------------------------- 12 13#define VISUINO_ARDUINO_NANO 14#define __VISUINO_SERVO_LIB__ 15 16#include <OpenWire.h> 17#include <Mitov.h> 18#include <Mitov_StandardSerial.h> 19#include <Wire.h> 20#include <Mitov_Basic_I2C.h> 21#include <Mitov_MPU6050.h> 22#include <Mitov_CompassHeading.h> 23#include <Mitov_HMC5883_Compass.h> 24#include <Mitov_BinaryGenerators.h> 25#include <Mitov_LogicGates.h> 26#include <Mitov_Math.h> 27#include <Mitov_SetValueItems.h> 28#include <Mitov_Timing.h> 29#ifndef VISUINO_ESP32 30#include <Servo.h> // The 'Servo' Arduino library https://github.com/arduino-libraries/Servo needs to be installed trough the Arduino IDE for this Scetch to compile! 31#endif // VISUINO_ESP32 32#include <Mitov_Servo.h> 33#include <Mitov_LogicFlipFlops.h> 34#include <Mitov_GPS.h> 35#include <Mitov_CommonMux.h> 36#include <Mitov_Counter.h> 37#include <Mitov_Button.h> 38#include <Mitov_CommonDemux.h> 39 40 41// Shared Component Member Variables 42 43namespace ComponentVariables 44{ 45class 46{ 47public: 48 uint32_t Value37 : 12; 49 uint32_t Value43 : 12; 50 uint32_t Value39 : 2; 51 bool Value1 : 1; 52 bool Value2 : 1; 53 bool Value3 : 1; 54 bool Value4 : 1; 55 bool Value5 : 1; 56 bool Value6 : 1; 57 bool Value7 : 1; 58 bool Value8 : 1; 59 bool Value9 : 1; 60 bool Value10 : 1; 61 bool Value11 : 1; 62 bool Value12 : 1; 63 bool Value13 : 1; 64 bool Value14 : 1; 65 bool Value15 : 1; 66 bool Value16 : 1; 67 bool Value17 : 1; 68 bool Value18 : 1; 69 bool Value19 : 1; 70 bool Value20 : 1; 71 bool Value21 : 1; 72 bool Value22 : 1; 73 bool Value23 : 1; 74 bool Value24 : 1; 75 bool Value25 : 1; 76 bool Value26 : 1; 77 bool Value27 : 1; 78 bool Value28 : 1; 79 bool Value29 : 1; 80 bool Value30 : 1; 81 bool Value31 : 1; 82 uint32_t Value32 : 1; 83 bool Value33 : 1; 84 bool Value34 : 1; 85 bool Value35 : 1; 86 bool Value36 : 1; 87 bool Value38 : 1; 88 bool Value40 : 1; 89 bool Value41 : 1; 90 bool Value42 : 1; 91 bool Value44 : 1; 92 uint32_t Value45 : 1; 93 bool Value46 : 1; 94 bool Value47 : 1; 95 bool Value48 : 1; 96 bool Value49 : 1; 97 bool Value50 : 1; 98 bool Value51 : 1; 99 bool Value52 : 1; 100 bool Value53 : 1; 101 bool Value54 : 1; 102 bool Value55 : 1; 103 bool Value56 : 1; 104 bool Value57 : 1; 105 bool Value58 : 1; 106 bool Value59 : 1; 107 bool Value60 : 1; 108 109} BitFields; 110 111class Variable37 112{ 113public: 114 inline static uint32_t GetValue() { return BitFields.Value37; } 115 inline static void SetValue( uint32_t AValue ) { BitFields.Value37 = AValue; } 116 117}; 118 119class Variable43 120{ 121public: 122 inline static uint32_t GetValue() { return BitFields.Value43; } 123 inline static void SetValue( uint32_t AValue ) { BitFields.Value43 = AValue; } 124 125}; 126 127class Variable39 128{ 129public: 130 inline static uint32_t GetValue() { return BitFields.Value39; } 131 inline static void SetValue( uint32_t AValue ) { BitFields.Value39 = AValue; } 132 133}; 134 135class Variable1 136{ 137public: 138 inline static bool GetValue() { return BitFields.Value1; } 139 inline static void SetValue( bool AValue ) { BitFields.Value1 = AValue; } 140 141}; 142 143class Variable2 144{ 145public: 146 inline static bool GetValue() { return BitFields.Value2; } 147 inline static void SetValue( bool AValue ) { BitFields.Value2 = AValue; } 148 149}; 150 151class Variable3 152{ 153public: 154 inline static bool GetValue() { return BitFields.Value3; } 155 inline static void SetValue( bool AValue ) { BitFields.Value3 = AValue; } 156 157}; 158 159class Variable4 160{ 161public: 162 inline static bool GetValue() { return BitFields.Value4; } 163 inline static void SetValue( bool AValue ) { BitFields.Value4 = AValue; } 164 165}; 166 167class Variable5 168{ 169public: 170 inline static bool GetValue() { return BitFields.Value5; } 171 inline static void SetValue( bool AValue ) { BitFields.Value5 = AValue; } 172 173}; 174 175class Variable6 176{ 177public: 178 inline static bool GetValue() { return BitFields.Value6; } 179 inline static void SetValue( bool AValue ) { BitFields.Value6 = AValue; } 180 181}; 182 183class Variable7 184{ 185public: 186 inline static bool GetValue() { return BitFields.Value7; } 187 inline static void SetValue( bool AValue ) { BitFields.Value7 = AValue; } 188 189}; 190 191class Variable8 192{ 193public: 194 inline static bool GetValue() { return BitFields.Value8; } 195 inline static void SetValue( bool AValue ) { BitFields.Value8 = AValue; } 196 197}; 198 199class Variable9 200{ 201public: 202 inline static bool GetValue() { return BitFields.Value9; } 203 inline static void SetValue( bool AValue ) { BitFields.Value9 = AValue; } 204 205}; 206 207class Variable10 208{ 209public: 210 inline static bool GetValue() { return BitFields.Value10; } 211 inline static void SetValue( bool AValue ) { BitFields.Value10 = AValue; } 212 213}; 214 215class Variable11 216{ 217public: 218 inline static bool GetValue() { return BitFields.Value11; } 219 inline static void SetValue( bool AValue ) { BitFields.Value11 = AValue; } 220 221}; 222 223class Variable12 224{ 225public: 226 inline static bool GetValue() { return BitFields.Value12; } 227 inline static void SetValue( bool AValue ) { BitFields.Value12 = AValue; } 228 229}; 230 231class Variable13 232{ 233public: 234 inline static bool GetValue() { return BitFields.Value13; } 235 inline static void SetValue( bool AValue ) { BitFields.Value13 = AValue; } 236 237}; 238 239class Variable14 240{ 241public: 242 inline static bool GetValue() { return BitFields.Value14; } 243 inline static void SetValue( bool AValue ) { BitFields.Value14 = AValue; } 244 245}; 246 247class Variable15 248{ 249public: 250 inline static bool GetValue() { return BitFields.Value15; } 251 inline static void SetValue( bool AValue ) { BitFields.Value15 = AValue; } 252 253}; 254 255class Variable16 256{ 257public: 258 inline static bool GetValue() { return BitFields.Value16; } 259 inline static void SetValue( bool AValue ) { BitFields.Value16 = AValue; } 260 261}; 262 263class Variable17 264{ 265public: 266 inline static bool GetValue() { return BitFields.Value17; } 267 inline static void SetValue( bool AValue ) { BitFields.Value17 = AValue; } 268 269}; 270 271class Variable18 272{ 273public: 274 inline static bool GetValue() { return BitFields.Value18; } 275 inline static void SetValue( bool AValue ) { BitFields.Value18 = AValue; } 276 277}; 278 279class Variable19 280{ 281public: 282 inline static bool GetValue() { return BitFields.Value19; } 283 inline static void SetValue( bool AValue ) { BitFields.Value19 = AValue; } 284 285}; 286 287class Variable20 288{ 289public: 290 inline static bool GetValue() { return BitFields.Value20; } 291 inline static void SetValue( bool AValue ) { BitFields.Value20 = AValue; } 292 293}; 294 295class Variable21 296{ 297public: 298 inline static bool GetValue() { return BitFields.Value21; } 299 inline static void SetValue( bool AValue ) { BitFields.Value21 = AValue; } 300 301}; 302 303class Variable22 304{ 305public: 306 inline static bool GetValue() { return BitFields.Value22; } 307 inline static void SetValue( bool AValue ) { BitFields.Value22 = AValue; } 308 309}; 310 311class Variable23 312{ 313public: 314 inline static bool GetValue() { return BitFields.Value23; } 315 inline static void SetValue( bool AValue ) { BitFields.Value23 = AValue; } 316 317}; 318 319class Variable24 320{ 321public: 322 inline static bool GetValue() { return BitFields.Value24; } 323 inline static void SetValue( bool AValue ) { BitFields.Value24 = AValue; } 324 325}; 326 327class Variable25 328{ 329public: 330 inline static bool GetValue() { return BitFields.Value25; } 331 inline static void SetValue( bool AValue ) { BitFields.Value25 = AValue; } 332 333}; 334 335class Variable26 336{ 337public: 338 inline static bool GetValue() { return BitFields.Value26; } 339 inline static void SetValue( bool AValue ) { BitFields.Value26 = AValue; } 340 341}; 342 343class Variable27 344{ 345public: 346 inline static bool GetValue() { return BitFields.Value27; } 347 inline static void SetValue( bool AValue ) { BitFields.Value27 = AValue; } 348 349}; 350 351class Variable28 352{ 353public: 354 inline static bool GetValue() { return BitFields.Value28; } 355 inline static void SetValue( bool AValue ) { BitFields.Value28 = AValue; } 356 357}; 358 359class Variable29 360{ 361public: 362 inline static bool GetValue() { return BitFields.Value29; } 363 inline static void SetValue( bool AValue ) { BitFields.Value29 = AValue; } 364 365}; 366 367class Variable30 368{ 369public: 370 inline static bool GetValue() { return BitFields.Value30; } 371 inline static void SetValue( bool AValue ) { BitFields.Value30 = AValue; } 372 373}; 374 375class Variable31 376{ 377public: 378 inline static bool GetValue() { return BitFields.Value31; } 379 inline static void SetValue( bool AValue ) { BitFields.Value31 = AValue; } 380 381}; 382 383class Variable32 384{ 385public: 386 inline static uint32_t GetValue() { return BitFields.Value32; } 387 inline static void SetValue( uint32_t AValue ) { BitFields.Value32 = AValue; } 388 389}; 390 391class Variable33 392{ 393public: 394 inline static bool GetValue() { return BitFields.Value33; } 395 inline static void SetValue( bool AValue ) { BitFields.Value33 = AValue; } 396 397}; 398 399class Variable34 400{ 401public: 402 inline static bool GetValue() { return BitFields.Value34; } 403 inline static void SetValue( bool AValue ) { BitFields.Value34 = AValue; } 404 405}; 406 407class Variable35 408{ 409public: 410 inline static bool GetValue() { return BitFields.Value35; } 411 inline static void SetValue( bool AValue ) { BitFields.Value35 = AValue; } 412 413}; 414 415class Variable36 416{ 417public: 418 inline static bool GetValue() { return BitFields.Value36; } 419 inline static void SetValue( bool AValue ) { BitFields.Value36 = AValue; } 420 421}; 422 423class Variable38 424{ 425public: 426 inline static bool GetValue() { return BitFields.Value38; } 427 inline static void SetValue( bool AValue ) { BitFields.Value38 = AValue; } 428 429}; 430 431class Variable40 432{ 433public: 434 inline static bool GetValue() { return BitFields.Value40; } 435 inline static void SetValue( bool AValue ) { BitFields.Value40 = AValue; } 436 437}; 438 439class Variable41 440{ 441public: 442 inline static bool GetValue() { return BitFields.Value41; } 443 inline static void SetValue( bool AValue ) { BitFields.Value41 = AValue; } 444 445}; 446 447class Variable42 448{ 449public: 450 inline static bool GetValue() { return BitFields.Value42; } 451 inline static void SetValue( bool AValue ) { BitFields.Value42 = AValue; } 452 453}; 454 455class Variable44 456{ 457public: 458 inline static bool GetValue() { return BitFields.Value44; } 459 inline static void SetValue( bool AValue ) { BitFields.Value44 = AValue; } 460 461}; 462 463class Variable45 464{ 465public: 466 inline static uint32_t GetValue() { return BitFields.Value45; } 467 inline static void SetValue( uint32_t AValue ) { BitFields.Value45 = AValue; } 468 469}; 470 471class Variable46 472{ 473public: 474 inline static bool GetValue() { return BitFields.Value46; } 475 inline static void SetValue( bool AValue ) { BitFields.Value46 = AValue; } 476 477}; 478 479class Variable47 480{ 481public: 482 inline static bool GetValue() { return BitFields.Value47; } 483 inline static void SetValue( bool AValue ) { BitFields.Value47 = AValue; } 484 485}; 486 487class Variable48 488{ 489public: 490 inline static bool GetValue() { return BitFields.Value48; } 491 inline static void SetValue( bool AValue ) { BitFields.Value48 = AValue; } 492 493}; 494 495class Variable49 496{ 497public: 498 inline static bool GetValue() { return BitFields.Value49; } 499 inline static void SetValue( bool AValue ) { BitFields.Value49 = AValue; } 500 501}; 502 503class Variable50 504{ 505public: 506 inline static bool GetValue() { return BitFields.Value50; } 507 inline static void SetValue( bool AValue ) { BitFields.Value50 = AValue; } 508 509}; 510 511class Variable51 512{ 513public: 514 inline static bool GetValue() { return BitFields.Value51; } 515 inline static void SetValue( bool AValue ) { BitFields.Value51 = AValue; } 516 517}; 518 519class Variable52 520{ 521public: 522 inline static bool GetValue() { return BitFields.Value52; } 523 inline static void SetValue( bool AValue ) { BitFields.Value52 = AValue; } 524 525}; 526 527class Variable53 528{ 529public: 530 inline static bool GetValue() { return BitFields.Value53; } 531 inline static void SetValue( bool AValue ) { BitFields.Value53 = AValue; } 532 533}; 534 535class Variable54 536{ 537public: 538 inline static bool GetValue() { return BitFields.Value54; } 539 inline static void SetValue( bool AValue ) { BitFields.Value54 = AValue; } 540 541}; 542 543class Variable55 544{ 545public: 546 inline static bool GetValue() { return BitFields.Value55; } 547 inline static void SetValue( bool AValue ) { BitFields.Value55 = AValue; } 548 549}; 550 551class Variable56 552{ 553public: 554 inline static bool GetValue() { return BitFields.Value56; } 555 inline static void SetValue( bool AValue ) { BitFields.Value56 = AValue; } 556 557}; 558 559class Variable57 560{ 561public: 562 inline static bool GetValue() { return BitFields.Value57; } 563 inline static void SetValue( bool AValue ) { BitFields.Value57 = AValue; } 564 565}; 566 567class Variable58 568{ 569public: 570 inline static bool GetValue() { return BitFields.Value58; } 571 inline static void SetValue( bool AValue ) { BitFields.Value58 = AValue; } 572 573}; 574 575class Variable59 576{ 577public: 578 inline static bool GetValue() { return BitFields.Value59; } 579 inline static void SetValue( bool AValue ) { BitFields.Value59 = AValue; } 580 581}; 582 583class Variable60 584{ 585public: 586 inline static bool GetValue() { return BitFields.Value60; } 587 inline static void SetValue( bool AValue ) { BitFields.Value60 = AValue; } 588 589}; 590 591} // ComponentVariables 592 593// Arduino Constant Declarations 594 595namespace VisuinoConstants 596{ 597class FloatValue5 598{ 599public: 600 inline static constexpr float GetValue() { return 358; } 601}; 602 603class FloatValue21 604{ 605public: 606 inline static constexpr float GetValue() { return 89; } 607}; 608 609class FloatValue13 610{ 611public: 612 inline static constexpr float GetValue() { return 270; } 613}; 614 615class FloatValue11 616{ 617public: 618 inline static constexpr float GetValue() { return 220; } 619}; 620 621class FloatValue6 622{ 623public: 624 inline static constexpr float GetValue() { return 1; } 625}; 626 627class FloatValue7 628{ 629public: 630 inline static constexpr float GetValue() { return 3; } 631}; 632 633class FloatValue12 634{ 635public: 636 inline static constexpr float GetValue() { return 90; } 637}; 638 639class FloatValue10 640{ 641public: 642 inline static constexpr float GetValue() { return 140; } 643}; 644 645class FloatValue15 646{ 647public: 648 inline static constexpr float GetValue() { return 300; } 649}; 650 651class FloatValue16 652{ 653public: 654 inline static constexpr float GetValue() { return 15; } 655}; 656 657class FloatValue17 658{ 659public: 660 inline static constexpr float GetValue() { return 345; } 661}; 662 663class FloatValue18 664{ 665public: 666 inline static constexpr float GetValue() { return 179; } 667}; 668 669class FloatValue14 670{ 671public: 672 inline static constexpr float GetValue() { return 60; } 673}; 674 675class FloatValue1 676{ 677public: 678 inline static constexpr float GetValue() { return 0; } 679}; 680 681class FloatValue4 682{ 683public: 684 inline static constexpr float GetValue() { return 0.0599999986588955; } 685}; 686 687class FloatValue19 688{ 689public: 690 inline static constexpr float GetValue() { return 181; } 691}; 692 693class FloatValue0 694{ 695public: 696 inline static constexpr float GetValue() { return 1.25; } 697}; 698 699class FloatValue20 700{ 701public: 702 inline static constexpr float GetValue() { return 0.5; } 703}; 704 705class FloatValue8 706{ 707public: 708 inline static constexpr float GetValue() { return 4; } 709}; 710 711class FloatValue9 712{ 713public: 714 inline static constexpr float GetValue() { return 5; } 715}; 716 717class FloatValue3 718{ 719public: 720 inline static constexpr float GetValue() { return -0.0599999986588955; } 721}; 722 723class FloatValue2 724{ 725public: 726 inline static constexpr float GetValue() { return 2; } 727}; 728 729} // VisuinoConstants 730 731// Pin Call Declarations 732 733namespace PinCalls 734{ 735class PinCallerReceive0 736{ 737public: 738 void Notify( void *_Data ); 739 740}; 741class PinCallerReceive1 742{ 743public: 744 void Notify( void *_Data ); 745 746}; 747class PinCallerReceive2 748{ 749public: 750 void Notify( void *_Data ); 751 752}; 753class PinCallerReceive3 754{ 755public: 756 void Notify( void *_Data ); 757 758}; 759class PinCallerReceive4 760{ 761public: 762 void Notify( void *_Data ); 763 764}; 765class PinCallerReceive5 766{ 767public: 768 void Notify( void *_Data ); 769 770}; 771class PinCallerReceive6 772{ 773public: 774 void Notify( void *_Data ); 775 776}; 777class PinCallerReceive7 778{ 779public: 780 void Notify( void *_Data ); 781 782}; 783class PinCallerReceive8 784{ 785public: 786 void Notify( void *_Data ); 787 788}; 789class PinCallerReceive9 790{ 791public: 792 void Notify( void *_Data ); 793 794}; 795class PinCallerReceive10 796{ 797public: 798 void Notify( void *_Data ); 799 800}; 801class PinCallerReceive11 802{ 803public: 804 void Notify( void *_Data ); 805 806}; 807class PinCallerReceive12 808{ 809public: 810 void Notify( void *_Data ); 811 812}; 813class PinCallerReceive13 814{ 815public: 816 void Notify( void *_Data ); 817 818}; 819class PinCallerReceive14 820{ 821public: 822 void Notify( void *_Data ); 823 824}; 825class PinCallerReceive15 826{ 827public: 828 void Notify( void *_Data ); 829 830}; 831class PinCallerReceive16 832{ 833public: 834 void Notify( void *_Data ); 835 836}; 837class PinCallerReceive17 838{ 839public: 840 void Notify( void *_Data ); 841 842}; 843class PinCallerReceive18 844{ 845public: 846 void Notify( void *_Data ); 847 848}; 849class PinCallerReceive19 850{ 851public: 852 void Notify( void *_Data ); 853 854}; 855class PinCallerReceive20 856{ 857public: 858 void Notify( void *_Data ); 859 860}; 861class PinCallerReceive21 862{ 863public: 864 void Notify( void *_Data ); 865 866}; 867class PinCallerReceive22 868{ 869public: 870 void Notify( void *_Data ); 871 872}; 873class PinCallerReceive23 874{ 875public: 876 void Notify( void *_Data ); 877 878}; 879class PinCallerReceive24 880{ 881public: 882 void Notify( void *_Data ); 883 884}; 885class PinCallerReceive25 886{ 887public: 888 void Notify( void *_Data ); 889 890}; 891class PinCallerReceive26 892{ 893public: 894 void Notify( void *_Data ); 895 896}; 897class PinCallerReceive27 898{ 899public: 900 void Notify( void *_Data ); 901 902}; 903class PinCallerReceive28 904{ 905public: 906 void Notify( void *_Data ); 907 908}; 909class PinCallerReceive29 910{ 911public: 912 void Notify( void *_Data ); 913 914}; 915class PinCallerReceive30 916{ 917public: 918 void Notify( void *_Data ); 919 920}; 921class PinCallerReceive31 922{ 923public: 924 void Notify( void *_Data ); 925 926}; 927class PinCallerReceive32 928{ 929public: 930 void Notify( void *_Data ); 931 932}; 933class PinCallerReceive33 934{ 935public: 936 void Notify( void *_Data ); 937 938}; 939class PinCallerReceive34 940{ 941public: 942 void Notify( void *_Data ); 943 944}; 945class PinCallerReceive35 946{ 947public: 948 void Notify( void *_Data ); 949 950}; 951class PinCallerReceive36 952{ 953public: 954 void Notify( void *_Data ); 955 956}; 957class PinCallerReceive37 958{ 959public: 960 void Notify( void *_Data ); 961 962}; 963class PinCallerReceive38 964{ 965public: 966 void Notify( void *_Data ); 967 968}; 969class PinCallerReceive39 970{ 971public: 972 void Notify( void *_Data ); 973 974}; 975class PinCallerReceive40 976{ 977public: 978 void Notify( void *_Data ); 979 980}; 981class PinCallerReceive41 982{ 983public: 984 void Notify( void *_Data ); 985 986}; 987class PinCallerReceive42 988{ 989public: 990 void Notify( void *_Data ); 991 992}; 993class PinCallerReceive43 994{ 995public: 996 void Notify( void *_Data ); 997 998}; 999class PinCallerReceive44 1000{ 1001public: 1002 void Notify( void *_Data ); 1003 1004}; 1005class PinCallerReceive45 1006{ 1007public: 1008 void Notify( void *_Data ); 1009 1010}; 1011class PinCallerReceive46 1012{ 1013public: 1014 void Notify( void *_Data ); 1015 1016}; 1017class PinCallerReceive47 1018{ 1019public: 1020 void Notify( void *_Data ); 1021 1022}; 1023class PinCallerReceive48 1024{ 1025public: 1026 void Notify( void *_Data ); 1027 1028}; 1029} // PinCalls 1030 1031// Call Chains 1032 1033namespace CallChains 1034{ 1035class SendByte1 1036{ 1037public: 1038 inline static constexpr uint32_t Count() { return 1; } 1039 static void Call( uint8_t AValue ); 1040 1041}; 1042class RequestData1 1043{ 1044public: 1045 inline static constexpr uint32_t Count() { return 1; } 1046 static void Call(); 1047 1048}; 1049class TryActive1 1050{ 1051public: 1052 inline static constexpr uint32_t Count() { return 5; } 1053 static void Call( bool & AResult ); 1054 1055}; 1056class TryActive2 1057{ 1058public: 1059 inline static constexpr uint32_t Count() { return 0; } 1060 static void Call( bool & AResult ); 1061 1062}; 1063class SetPinValue1 1064{ 1065public: 1066 inline static constexpr uint32_t Count() { return 0; } 1067 static void Call( uint32_t AIndex ); 1068 1069}; 1070class PeriodicCall1 1071{ 1072public: 1073 inline static constexpr uint32_t Count() { return 0; } 1074 static void Call(); 1075 1076}; 1077} // CallChains 1078 1079// System Objects Declarations 1080 1081namespace BoardDeclarations 1082{ 1083Mitov::TPeriodMicros<1000000, ::CallChains::PeriodicCall1> SystemPeriodMicros_1000000; 1084} // BoardDeclarations 1085 1086// Arduino Board Declarations 1087 1088namespace BoardDeclarations 1089{ 1090namespace Types 1091{ 1092typedef Mitov::ArduinoDigitalInputChannel< 1093 Mitov::ConstantProperty<51, bool, false >, // InitialValue = 0 1094 Mitov::ConstantProperty<25, bool, false >, // IsOpenDrain = 0 1095 Mitov::ConstantProperty<25, bool, true >, // IsOutput = -1 1096 Mitov::ConstantProperty<20, bool, false >, // IsPullDown = 0 1097 Mitov::ConstantProperty<5, bool, false >, // IsPullUp = False (Default) 1098 Mitov::DigitalPin_NoImplementation<6 >, // OutputPin 1099 6 // PIN_DIGITAL 1100 > ArduinoDigitalChannel_6; 1101} // Types 1102 1103namespace Instances 1104{ 1105Types::ArduinoDigitalChannel_6 ArduinoDigitalChannel_6; 1106} // Instances 1107 1108namespace Types 1109{ 1110typedef Mitov::ArduinoDigitalOutputChannel< 1111 Mitov::ConstantProperty<22, bool, false >, // IsAnalog = 0 1112 Mitov::ConstantProperty<24, bool, false >, // IsCombinedInOut = 0 1113 Mitov::ConstantProperty<21, bool, false >, // IsOpenDrain = 0 1114 Mitov::ConstantProperty<26, bool, false >, // IsOutput = 0 1115 Mitov::ConstantProperty<20, bool, false >, // IsPullDown = 0 1116 Mitov::ConstantProperty<5, bool, true >, // IsPullUp = True 1117 Mitov::ConstantProperty<23, bool, false >, // IsRawInput = 0 1118 Mitov::DigitalPin_EmbeddedPinImplementation<6, ::PinCalls::PinCallerReceive0 >, // OutputPin 1119 8 // PIN_DIGITAL 1120 > ArduinoDigitalChannel_8; 1121} // Types 1122 1123namespace Instances 1124{ 1125Types::ArduinoDigitalChannel_8 ArduinoDigitalChannel_8; 1126} // Instances 1127 1128namespace Types 1129{ 1130typedef Mitov::ArduinoDigitalInputChannel< 1131 Mitov::ConstantProperty<51, bool, false >, // InitialValue = 0 1132 Mitov::ConstantProperty<25, bool, false >, // IsOpenDrain = 0 1133 Mitov::ConstantProperty<25, bool, true >, // IsOutput = -1 1134 Mitov::ConstantProperty<20, bool, false >, // IsPullDown = 0 1135 Mitov::ConstantProperty<5, bool, false >, // IsPullUp = False (Default) 1136 Mitov::DigitalPin_NoImplementation<6 >, // OutputPin 1137 13 // PIN_DIGITAL 1138 > ArduinoDigitalChannel_13; 1139} // Types 1140 1141namespace Instances 1142{ 1143Types::ArduinoDigitalChannel_13 ArduinoDigitalChannel_13; 1144} // Instances 1145 1146namespace Types 1147{ 1148typedef Mitov::SerialPort< 1149 SERIAL_TYPE, // 0_T_TYPE 1150 Serial, // 1_C_OBJECT 1151 Mitov::ConstantProperty<4, uint32_t, 0 >, // AfterSendingDelay = 0 (Default) 1152 Mitov::ConstantProperty<7, uint32_t, 8 >, // DataBits = 8 (Default) 1153 Mitov::ConstantProperty<2, bool, true >, // Enabled = True (Default) 1154 Mitov::ConstantProperty<12, uint32_t, 0 >, // FEndTime = 0 1155 Mitov::ConstantProperty<10, bool, false >, // FSending = False 1156 Mitov::GenericPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive1 >, // OutputPin 1157 Mitov::ConstantProperty<9, Mitov::TArduinoStandardSerialParity, Mitov::spNone >, // Parity = spNone (Default) 1158 Mitov::DigitalPin_NoImplementation<3 >, // SendingOutputPin 1159 Mitov::ConstantProperty<6, uint32_t, 9600 >, // Speed = 9600 (Default) 1160 Mitov::ConstantProperty<8, uint32_t, 1 > // StopBits = 1 (Default) 1161 > SerialPort0; 1162} // Types 1163 1164namespace Instances 1165{ 1166Types::SerialPort0 SerialPort0; 1167} // Instances 1168 1169namespace Types 1170{ 1171typedef ::Mitov::ArduinoI2C< 1172 Wire, // 1_I2C 1173 Mitov::ConstantProperty<6, uint32_t, 0 >, // Address = 0 (Default) 1174 Mitov::EmbeddedCallChain<CallChains::RequestData1 >, // INSTANCE_RequestData 1175 Mitov::EmbeddedCallChain<CallChains::SendByte1 >, // INSTANCE_SendByte 1176 Mitov::ConstantProperty<5, bool, false >, // IsSlave = False (Default) 1177 Mitov::GenericPin_NoImplementation<2 >, // OutputPin 1178 Mitov::ClockPin_NoImplementation<4 > // RequestOutputPin 1179 > TArduinoI2C1; 1180} // Types 1181 1182namespace Instances 1183{ 1184Types::TArduinoI2C1 TArduinoI2C1; 1185} // Instances 1186 1187} // BoardDeclarations 1188 1189// Declarations 1190 1191namespace Declarations 1192{ 1193namespace Types 1194{ 1195typedef Mitov::MPU6050I2C< 1196 TwoWire, // 0_I2C_TYPE_PIN 1197 Wire, // 1_I2C_NAME_PIN 1198 Mitov::NestedProperty<28, Mitov::MPUAccelerometer< 1199 Mitov::ConstantProperty<15, Mitov::TArduinoMPU9250AccelerometerRange, Mitov::ar2g >, // FullScaleRange = 0 (Default) 1200 Mitov::AnalogPin_EmbeddedPinImplementation<12, ::PinCalls::PinCallerReceive2 >, // OutputPins_0 1201 Mitov::AnalogPin_EmbeddedPinImplementation<13, ::PinCalls::PinCallerReceive3 >, // OutputPins_1 1202 Mitov::AnalogPin_NoImplementation<14 >, // OutputPins_2 1203 Mitov::NestedProperty<19, Mitov::MPUOptionalSelfTestSensor< 1204 Mitov::ConstantProperty<17, bool, true >, // Enabled = True (Default) 1205 Mitov::ConstantProperty<18, bool, false > // SelfTest = False (Default) 1206 > >, // X 1207 Mitov::NestedProperty<23, Mitov::MPUOptionalSelfTestSensor< 1208 Mitov::ConstantProperty<21, bool, true >, // Enabled = True (Default) 1209 Mitov::ConstantProperty<22, bool, false > // SelfTest = False (Default) 1210 > >, // Y 1211 Mitov::NestedProperty<27, Mitov::MPUOptionalSelfTestSensor< 1212 Mitov::ConstantProperty<25, bool, true >, // Enabled = True (Default) 1213 Mitov::ConstantProperty<26, bool, false > // SelfTest = False (Default) 1214 > > // Z 1215 > >, // Accelerometer 1216 Mitov::ConstantProperty<9, uint8_t, 104 >, // Address = 104 (Default) 1217 Mitov::ConstantProperty<5, bool, false >, // ClockInputPin_o_IsConnected = False 1218 Mitov::ConstantProperty<8, Mitov::TArduinoMPUClockSource, Mitov::mcsAutoSelect >, // ClockSource = 0 (Default) 1219 Mitov::ConstantProperty<3, bool, true >, // Enabled = True (Default) 1220 Mitov::ConstantProperty<71, Mitov::TArduinoMPU6050Filter, Mitov::f_AB_260Hz_GB_256Hz_F_8KHz >, // Filter = 0 (Default) 1221 Mitov::NestedProperty<66, Mitov::MPUFrameSynchronization< 1222 Mitov::ConstantProperty<64, bool, false >, // EnableInterrupt = False (Default) 1223 Mitov::ConstantProperty<65, bool, false >, // InterruptOnLowLevel = False (Default) 1224 Mitov::ConstantProperty<63, Mitov::TArduinoMPU9250FrameSynchronizationLocation, Mitov::fslDisabled >, // Location = 0 (Default) 1225 Mitov::ClockPin_NoImplementation<62 > // OutputPin 1226 > >, // FrameSynchronization 1227 Mitov::NestedProperty<48, Mitov::MPUGyroscope< 1228 Mitov::ConstantProperty<34, Mitov::TArduinoMPU9250GyroscopeRange, Mitov::gr250dps >, // FullScaleRange = 0 (Default) 1229 Mitov::AnalogPin_NoImplementation<31 >, // OutputPins_0 1230 Mitov::AnalogPin_NoImplementation<32 >, // OutputPins_1 1231 Mitov::AnalogPin_NoImplementation<33 >, // OutputPins_2 1232 Mitov::ConstantProperty<35, Mitov::TArduinoAngleUnits, Mitov::auDegree >, // Units = auDegree (Default) 1233 Mitov::NestedProperty<39, Mitov::MPUOptionalSelfTestSensor< 1234 Mitov::ConstantProperty<37, bool, true >, // Enabled = True (Default) 1235 Mitov::ConstantProperty<38, bool, false > // SelfTest = False (Default) 1236 > >, // X 1237 Mitov::NestedProperty<43, Mitov::MPUOptionalSelfTestSensor< 1238 Mitov::ConstantProperty<41, bool, true >, // Enabled = True (Default) 1239 Mitov::ConstantProperty<42, bool, false > // SelfTest = False (Default) 1240 > >, // Y 1241 Mitov::NestedProperty<47, Mitov::MPUOptionalSelfTestSensor< 1242 Mitov::ConstantProperty<45, bool, true >, // Enabled = True (Default) 1243 Mitov::ConstantProperty<46, bool, false > // SelfTest = False (Default) 1244 > > // Z 1245 > >, // Gyroscope 1246 Mitov::NestedProperty<60, Mitov::MPUInterrupt< 1247 Mitov::ConstantProperty<55, bool, false >, // Inverted = False (Default) 1248 Mitov::ConstantProperty<57, bool, true >, // Latch = True (Default) 1249 Mitov::ConstantProperty<58, bool, false >, // OnFrameSync = False (Default) 1250 Mitov::ConstantProperty<59, bool, false >, // OnRawReady = False (Default) 1251 Mitov::ConstantProperty<56, bool, false > // OpenDrain = False (Default) 1252 > >, // Interrupt 1253 Mitov::NestedProperty<70, Mitov::MPU6050LowPowerMode< 1254 Mitov::ConstantProperty<68, bool, false >, // Enabled = False (Default) 1255 Mitov::ConstantPropertyFloat<69, float, ::VisuinoConstants::FloatValue0 > // SampleFrequency = 1.25 (Default) 1256 > >, // LowPowerMode 1257 Mitov::ConstantProperty<72, uint32_t, 1 >, // SampleRateDivider = 1 (Default) 1258 Mitov::NestedProperty<53, Mitov::TArduinoBasicEnabledThermometer< 1259 Mitov::ConstantProperty<50, bool, true >, // Enabled = True (Default) 1260 Mitov::ConstantProperty<52, bool, false >, // InFahrenheit = False (Default) 1261 Mitov::AnalogPin_NoImplementation<51 > // OutputPin 1262 > > // Thermometer 1263 > AccelerometerGyroscope1; // TArduinoMPU6050I2C 1264} // Types 1265 1266namespace Instances 1267{ 1268Types::AccelerometerGyroscope1 AccelerometerGyroscope1; // TArduinoMPU6050I2C 1269} // Instances 1270 1271namespace Types 1272{ 1273typedef Mitov::CompassHeading< 1274 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue1 >, // DeclinationAngle = 0 (Default) 1275 Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable1 >, // FChangeOnly = 0 1276 Mitov::TypedVariable<11, bool, ::ComponentVariables::Variable2 >, // FModified = 0 1277 Mitov::AnalogPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive4 >, // OutputPin 1278 Mitov::ConstantProperty<8, Mitov::TArduinoAngleUnits, Mitov::auDegree > // Units = auDegree (Default) 1279 > CompassHeading1; // TArduinoCompassHeading 1280} // Types 1281 1282namespace Instances 1283{ 1284Types::CompassHeading1 CompassHeading1; // TArduinoCompassHeading 1285} // Instances 1286 1287namespace Types 1288{ 1289typedef Mitov::HMC5883L_Compass< 1290 TwoWire, // 0_I2C_TYPE_PIN 1291 Wire, // 1_I2C_NAME_PIN 1292 Mitov::ConstantProperty<9, uint8_t, 30 >, // Address = 30 (Default) 1293 Mitov::ConstantProperty<10, Mitov::TCompassHMC5883LAveragedSamples, Mitov::cas1 >, // AveragedSamples = 0 (Default) 1294 Mitov::ConstantProperty<11, Mitov::TCompassHMC5883LBias, Mitov::cbNone >, // Bias = 0 (Default) 1295 Mitov::ConstantProperty<3, bool, true >, // Enabled = True (Default) 1296 Mitov::ConstantProperty<14, bool, true >, // FClocked = True 1297 Mitov::ConstantProperty<12, Mitov::TCompassHMC5883LGain, Mitov::cg1090 >, // Gain = 1 (Default) 1298 Mitov::ConstantProperty<13, bool, false >, // Idle = False (Default) 1299 Mitov::AnalogPin_EmbeddedPinImplementation<6, ::PinCalls::PinCallerReceive5 >, // XOutputPin 1300 Mitov::AnalogPin_EmbeddedPinImplementation<7, ::PinCalls::PinCallerReceive6 >, // YOutputPin 1301 Mitov::AnalogPin_NoImplementation<8 > // ZOutputPin 1302 > Compass1; // TCompassHMC5883L 1303} // Types 1304 1305namespace Instances 1306{ 1307Types::Compass1 Compass1; // TCompassHMC5883L 1308} // Instances 1309 1310namespace Types 1311{ 1312typedef Mitov::PulseGenerator< 1313 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue1 >, // Asymmetry = 0 (Default) 1314 Mitov::TypedVariableValue<4, bool, ::ComponentVariables::Variable3, true >, // Enabled = True (Default) 1315 Mitov::ConstantPropertyFloat<17, float, ::VisuinoConstants::FloatValue1>, // FPhase = 0 1316 Mitov::TypedVariable<15, bool, ::ComponentVariables::Variable4 >, // FValue = 0 1317 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue2 >, // Frequency = 2 1318 Mitov::ConstantProperty<5, bool, false >, // InitialValue = False (Default) 1319 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive7 >, // OutputPin 1320 Mitov::ConstantPropertyFloat<9, float, ::VisuinoConstants::FloatValue1 >, // Phase = 0 (Default) 1321 Mitov::NestedProperty<14, Mitov::TArduinoGeneratorWhenDisabled< 1322 Mitov::ConstantProperty<13, bool, false >, // CompleteCycle = False (Default) 1323 Mitov::ConstantProperty<12, bool, true >, // FCycleCompleted = True 1324 Mitov::ConstantProperty<11, bool, true > // Reset = True 1325 > > // WhenDisabled 1326 > PulseGenerator1; // TArduinoPulseGenerator 1327} // Types 1328 1329namespace Instances 1330{ 1331Types::PulseGenerator1 PulseGenerator1; // TArduinoPulseGenerator 1332} // Instances 1333 1334namespace Types 1335{ 1336typedef Mitov::BooleanOperation< 1337 Mitov::BooleanOr, // BASE 1338 2, // COUNT_InputPins 1339 Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable5 >, // FModified = 0 1340 Mitov::DigitalPin_DirectBoardPinImplementation<4 > // OutputPin 1341 > Or1; // TArduinoBooleanOr 1342} // Types 1343 1344namespace Instances 1345{ 1346Types::Or1 Or1; // TArduinoBooleanOr 1347} // Instances 1348 1349namespace Types 1350{ 1351typedef Mitov::CompareRange< 1352 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1353 Mitov::TypedVariable<13, bool, ::ComponentVariables::Variable6 >, // FStarted = 0 1354 Mitov::ConstantProperty<11, bool, true >, // IncludeLimits = True 1355 Mitov::ConstantProperty<10, bool, false >, // IsOutsideRange = False (Default) 1356 Mitov::ConstantProperty<12, bool, true >, // OnlyChanged = True (Default) 1357 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive8 >, // OutputPin 1358 Mitov::NestedProperty<9, Mitov::ValueRange< 1359 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue4 >, // Value_Max = 0.0599999986588955 1360 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue3 > // Value_Min = -0.0599999986588955 1361 > >, // Range 1362 float // TYPE 1363 > CompareRange1; // TArduinoAnalogCompareRange 1364} // Types 1365 1366namespace Instances 1367{ 1368Types::CompareRange1 CompareRange1; // TArduinoAnalogCompareRange 1369} // Instances 1370 1371namespace Types 1372{ 1373typedef Mitov::CompareRange< 1374 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1375 Mitov::TypedVariable<13, bool, ::ComponentVariables::Variable7 >, // FStarted = 0 1376 Mitov::ConstantProperty<11, bool, true >, // IncludeLimits = True 1377 Mitov::ConstantProperty<10, bool, false >, // IsOutsideRange = False (Default) 1378 Mitov::ConstantProperty<12, bool, true >, // OnlyChanged = True (Default) 1379 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive9 >, // OutputPin 1380 Mitov::NestedProperty<9, Mitov::ValueRange< 1381 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue4 >, // Value_Max = 0.0599999986588955 1382 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue3 > // Value_Min = -0.0599999986588955 1383 > >, // Range 1384 float // TYPE 1385 > CompareRange2; // TArduinoAnalogCompareRange 1386} // Types 1387 1388namespace Instances 1389{ 1390Types::CompareRange2 CompareRange2; // TArduinoAnalogCompareRange 1391} // Instances 1392 1393namespace Types 1394{ 1395typedef Mitov::BooleanOperation< 1396 Mitov::BooleanAnd, // BASE 1397 3, // COUNT_InputPins 1398 Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable9 >, // FModified = 0 1399 Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive10, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable8 > > // OutputPin 1400 > And1; // TArduinoBooleanAnd 1401} // Types 1402 1403namespace Instances 1404{ 1405Types::And1 And1; // TArduinoBooleanAnd 1406} // Instances 1407 1408namespace Types 1409{ 1410typedef Mitov::CompareRange< 1411 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1412 Mitov::TypedVariable<13, bool, ::ComponentVariables::Variable10 >, // FStarted = 0 1413 Mitov::ConstantProperty<11, bool, true >, // IncludeLimits = True 1414 Mitov::ConstantProperty<10, bool, false >, // IsOutsideRange = False (Default) 1415 Mitov::ConstantProperty<12, bool, true >, // OnlyChanged = True (Default) 1416 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive11 >, // OutputPin 1417 Mitov::NestedProperty<9, Mitov::ValueRange< 1418 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue5 >, // Value_Max = 358 1419 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue2 > // Value_Min = 2 1420 > >, // Range 1421 float // TYPE 1422 > CompareRange3; // TArduinoAnalogCompareRange 1423} // Types 1424 1425namespace Instances 1426{ 1427Types::CompareRange3 CompareRange3; // TArduinoAnalogCompareRange 1428} // Instances 1429 1430namespace Types 1431{ 1432typedef Mitov::BooleanOperation< 1433 Mitov::BooleanOr, // BASE 1434 2, // COUNT_InputPins 1435 Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable12 >, // FModified = 0 1436 Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive12, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable11 > > // OutputPin 1437 > Or2; // TArduinoBooleanOr 1438} // Types 1439 1440namespace Instances 1441{ 1442Types::Or2 Or2; // TArduinoBooleanOr 1443} // Instances 1444 1445namespace Types 1446{ 1447typedef Mitov::BooleanInverter< 1448 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1449 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive13 > // OutputPin 1450 > Inverter1; // TArduinoBooleanInverter 1451} // Types 1452 1453namespace Instances 1454{ 1455Types::Inverter1 Inverter1; // TArduinoBooleanInverter 1456} // Instances 1457 1458namespace Types 1459{ 1460typedef Mitov::PulseGenerator< 1461 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue1 >, // Asymmetry = 0 (Default) 1462 Mitov::TypedVariableValue<4, bool, ::ComponentVariables::Variable13, true >, // Enabled = True (Default) 1463 Mitov::ConstantPropertyFloat<17, float, ::VisuinoConstants::FloatValue1>, // FPhase = 0 1464 Mitov::TypedVariable<15, bool, ::ComponentVariables::Variable14 >, // FValue = 0 1465 Mitov::VariableMinPropertyFloat<7, float, ::VisuinoConstants::FloatValue2, ::VisuinoConstants::FloatValue1 >, // Frequency = 2 1466 Mitov::ConstantProperty<5, bool, false >, // InitialValue = False (Default) 1467 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive14 >, // OutputPin 1468 Mitov::ConstantPropertyFloat<9, float, ::VisuinoConstants::FloatValue1 >, // Phase = 0 (Default) 1469 Mitov::NestedProperty<14, Mitov::TArduinoGeneratorWhenDisabled< 1470 Mitov::ConstantProperty<13, bool, false >, // CompleteCycle = False (Default) 1471 Mitov::ConstantProperty<12, bool, true >, // FCycleCompleted = True 1472 Mitov::ConstantProperty<11, bool, true > // Reset = True 1473 > > // WhenDisabled 1474 > PulseGenerator2; // TArduinoPulseGenerator 1475} // Types 1476 1477namespace Instances 1478{ 1479Types::PulseGenerator2 PulseGenerator2; // TArduinoPulseGenerator 1480} // Instances 1481 1482namespace Types 1483{ 1484typedef Mitov::ValueSourceState< 1485 0, // COUNT_Ramp_Elements = 0 1486 Mitov::EmbeddedCallChain<CallChains::TryActive1 >, // Elements_TryActive 1487 Mitov::TypedVariable<10, bool, ::ComponentVariables::Variable16 >, // FStarted = False 1488 Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable15 >, // FStateActive = False 1489 Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive15 >, // OutputPin 1490 float, // TYPE 1491 Mitov::VariablePropertyFloat<5, float, ::VisuinoConstants::FloatValue1 > // Value = 0 (Default) 1492 > AnalogValue1; // TArduinoFloatValue 1493} // Types 1494 1495namespace Instances 1496{ 1497Types::AnalogValue1 AnalogValue1; // TArduinoFloatValue 1498} // Instances 1499 1500namespace Types 1501{ 1502typedef Mitov::ArduinoStateSetValueElement< 1503 Declarations::Types::AnalogValue1, // 0_TYPE_OWNER 1504 Declarations::Instances::AnalogValue1, // 1_NAME_OWNER 1505 Mitov::TypedVariable<4, bool, ::ComponentVariables::Variable17 >, // FInputValue = 0 1506 Mitov::ConstantPropertyFloat<3, float, ::VisuinoConstants::FloatValue6 > // Value = 1 1507 > TArduinoAnalogStateSetValueElement1; 1508} // Types 1509 1510namespace Instances 1511{ 1512Types::TArduinoAnalogStateSetValueElement1 TArduinoAnalogStateSetValueElement1; 1513} // Instances 1514 1515namespace Types 1516{ 1517typedef Mitov::ArduinoStateSetValueElement< 1518 Declarations::Types::AnalogValue1, // 0_TYPE_OWNER 1519 Declarations::Instances::AnalogValue1, // 1_NAME_OWNER 1520 Mitov::TypedVariable<4, bool, ::ComponentVariables::Variable18 >, // FInputValue = 0 1521 Mitov::ConstantPropertyFloat<3, float, ::VisuinoConstants::FloatValue2 > // Value = 2 1522 > TArduinoAnalogStateSetValueElement2; 1523} // Types 1524 1525namespace Instances 1526{ 1527Types::TArduinoAnalogStateSetValueElement2 TArduinoAnalogStateSetValueElement2; 1528} // Instances 1529 1530namespace Types 1531{ 1532typedef Mitov::ArduinoStateSetValueElement< 1533 Declarations::Types::AnalogValue1, // 0_TYPE_OWNER 1534 Declarations::Instances::AnalogValue1, // 1_NAME_OWNER 1535 Mitov::TypedVariable<4, bool, ::ComponentVariables::Variable19 >, // FInputValue = 0 1536 Mitov::ConstantPropertyFloat<3, float, ::VisuinoConstants::FloatValue7 > // Value = 3 1537 > TArduinoAnalogStateSetValueElement3; 1538} // Types 1539 1540namespace Instances 1541{ 1542Types::TArduinoAnalogStateSetValueElement3 TArduinoAnalogStateSetValueElement3; 1543} // Instances 1544 1545namespace Types 1546{ 1547typedef Mitov::ArduinoStateSetValueElement< 1548 Declarations::Types::AnalogValue1, // 0_TYPE_OWNER 1549 Declarations::Instances::AnalogValue1, // 1_NAME_OWNER 1550 Mitov::TypedVariable<4, bool, ::ComponentVariables::Variable20 >, // FInputValue = 0 1551 Mitov::ConstantPropertyFloat<3, float, ::VisuinoConstants::FloatValue8 > // Value = 4 1552 > TArduinoAnalogStateSetValueElement4; 1553} // Types 1554 1555namespace Instances 1556{ 1557Types::TArduinoAnalogStateSetValueElement4 TArduinoAnalogStateSetValueElement4; 1558} // Instances 1559 1560namespace Types 1561{ 1562typedef Mitov::ArduinoStateSetValueElement< 1563 Declarations::Types::AnalogValue1, // 0_TYPE_OWNER 1564 Declarations::Instances::AnalogValue1, // 1_NAME_OWNER 1565 Mitov::TypedVariable<4, bool, ::ComponentVariables::Variable21 >, // FInputValue = 0 1566 Mitov::ConstantPropertyFloat<3, float, ::VisuinoConstants::FloatValue9 > // Value = 5 1567 > TArduinoAnalogStateSetValueElement5; 1568} // Types 1569 1570namespace Instances 1571{ 1572Types::TArduinoAnalogStateSetValueElement5 TArduinoAnalogStateSetValueElement5; 1573} // Instances 1574 1575namespace Types 1576{ 1577typedef Mitov::CompareRange< 1578 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1579 Mitov::TypedVariable<13, bool, ::ComponentVariables::Variable22 >, // FStarted = 0 1580 Mitov::ConstantProperty<11, bool, false >, // IncludeLimits = False (Default) 1581 Mitov::ConstantProperty<10, bool, false >, // IsOutsideRange = False (Default) 1582 Mitov::ConstantProperty<12, bool, true >, // OnlyChanged = True (Default) 1583 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive16 >, // OutputPin 1584 Mitov::NestedProperty<9, Mitov::ValueRange< 1585 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue11 >, // Value_Max = 220 1586 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue10 > // Value_Min = 140 1587 > >, // Range 1588 float // TYPE 1589 > CompareRange4; // TArduinoAnalogCompareRange 1590} // Types 1591 1592namespace Instances 1593{ 1594Types::CompareRange4 CompareRange4; // TArduinoAnalogCompareRange 1595} // Instances 1596 1597namespace Types 1598{ 1599typedef Mitov::CompareRange< 1600 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1601 Mitov::TypedVariable<13, bool, ::ComponentVariables::Variable23 >, // FStarted = 0 1602 Mitov::ConstantProperty<11, bool, false >, // IncludeLimits = False (Default) 1603 Mitov::ConstantProperty<10, bool, false >, // IsOutsideRange = False (Default) 1604 Mitov::ConstantProperty<12, bool, true >, // OnlyChanged = True (Default) 1605 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive17 >, // OutputPin 1606 Mitov::NestedProperty<9, Mitov::ValueRange< 1607 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue13 >, // Value_Max = 270 1608 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue12 > // Value_Min = 90 1609 > >, // Range 1610 float // TYPE 1611 > CompareRange5; // TArduinoAnalogCompareRange 1612} // Types 1613 1614namespace Instances 1615{ 1616Types::CompareRange5 CompareRange5; // TArduinoAnalogCompareRange 1617} // Instances 1618 1619namespace Types 1620{ 1621typedef Mitov::CompareRange< 1622 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1623 Mitov::TypedVariable<13, bool, ::ComponentVariables::Variable24 >, // FStarted = 0 1624 Mitov::ConstantProperty<11, bool, false >, // IncludeLimits = False (Default) 1625 Mitov::ConstantProperty<10, bool, false >, // IsOutsideRange = False (Default) 1626 Mitov::ConstantProperty<12, bool, true >, // OnlyChanged = True (Default) 1627 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive18 >, // OutputPin 1628 Mitov::NestedProperty<9, Mitov::ValueRange< 1629 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue15 >, // Value_Max = 300 1630 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue14 > // Value_Min = 60 1631 > >, // Range 1632 float // TYPE 1633 > CompareRange6; // TArduinoAnalogCompareRange 1634} // Types 1635 1636namespace Instances 1637{ 1638Types::CompareRange6 CompareRange6; // TArduinoAnalogCompareRange 1639} // Instances 1640 1641namespace Types 1642{ 1643typedef Mitov::CompareRange< 1644 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1645 Mitov::TypedVariable<13, bool, ::ComponentVariables::Variable25 >, // FStarted = 0 1646 Mitov::ConstantProperty<11, bool, false >, // IncludeLimits = False (Default) 1647 Mitov::ConstantProperty<10, bool, false >, // IsOutsideRange = False (Default) 1648 Mitov::ConstantProperty<12, bool, true >, // OnlyChanged = True (Default) 1649 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive19 >, // OutputPin 1650 Mitov::NestedProperty<9, Mitov::ValueRange< 1651 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue17 >, // Value_Max = 345 1652 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue16 > // Value_Min = 15 1653 > >, // Range 1654 float // TYPE 1655 > CompareRange7; // TArduinoAnalogCompareRange 1656} // Types 1657 1658namespace Instances 1659{ 1660Types::CompareRange7 CompareRange7; // TArduinoAnalogCompareRange 1661} // Instances 1662 1663namespace Types 1664{ 1665typedef Mitov::BooleanInverter< 1666 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1667 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive20 > // OutputPin 1668 > Inverter2; // TArduinoBooleanInverter 1669} // Types 1670 1671namespace Instances 1672{ 1673Types::Inverter2 Inverter2; // TArduinoBooleanInverter 1674} // Instances 1675 1676namespace Types 1677{ 1678typedef Mitov::BooleanInverter< 1679 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1680 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive21 > // OutputPin 1681 > Inverter3; // TArduinoBooleanInverter 1682} // Types 1683 1684namespace Instances 1685{ 1686Types::Inverter3 Inverter3; // TArduinoBooleanInverter 1687} // Instances 1688 1689namespace Types 1690{ 1691typedef Mitov::BooleanInverter< 1692 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1693 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive22 > // OutputPin 1694 > Inverter4; // TArduinoBooleanInverter 1695} // Types 1696 1697namespace Instances 1698{ 1699Types::Inverter4 Inverter4; // TArduinoBooleanInverter 1700} // Instances 1701 1702namespace Types 1703{ 1704typedef Mitov::BooleanInverter< 1705 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1706 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive23 > // OutputPin 1707 > Inverter5; // TArduinoBooleanInverter 1708} // Types 1709 1710namespace Instances 1711{ 1712Types::Inverter5 Inverter5; // TArduinoBooleanInverter 1713} // Instances 1714 1715namespace Types 1716{ 1717typedef Mitov::BooleanInverter< 1718 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1719 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive24 > // OutputPin 1720 > Inverter6; // TArduinoBooleanInverter 1721} // Types 1722 1723namespace Instances 1724{ 1725Types::Inverter6 Inverter6; // TArduinoBooleanInverter 1726} // Instances 1727 1728namespace Types 1729{ 1730typedef Mitov::CompareRange< 1731 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1732 Mitov::TypedVariable<13, bool, ::ComponentVariables::Variable26 >, // FStarted = 0 1733 Mitov::ConstantProperty<11, bool, false >, // IncludeLimits = False (Default) 1734 Mitov::ConstantProperty<10, bool, false >, // IsOutsideRange = False (Default) 1735 Mitov::ConstantProperty<12, bool, true >, // OnlyChanged = True (Default) 1736 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive25 >, // OutputPin 1737 Mitov::NestedProperty<9, Mitov::ValueRange< 1738 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue19 >, // Value_Max = 181 1739 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue18 > // Value_Min = 179 1740 > >, // Range 1741 float // TYPE 1742 > CompareRange8; // TArduinoAnalogCompareRange 1743} // Types 1744 1745namespace Instances 1746{ 1747Types::CompareRange8 CompareRange8; // TArduinoAnalogCompareRange 1748} // Instances 1749 1750namespace Types 1751{ 1752typedef Mitov::Delay< 1753 Mitov::ConstantProperty<8, bool, true >, // CanRestart = True (Default) 1754 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1755 Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable27 >, // FValue = 0 1756 Mitov::ConstantProperty<7, uint32_t, 5000000 >, // Interval = 5000000 1757 Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive26 > // OutputPin 1758 > Delay1; // TArduinoDelay 1759} // Types 1760 1761namespace Instances 1762{ 1763Types::Delay1 Delay1; // TArduinoDelay 1764} // Instances 1765 1766namespace Types 1767{ 1768typedef Mitov::MitovServo< 1769 Mitov::TypedVariableValue<4, bool, ::ComponentVariables::Variable28, true >, // Enabled = True (Default) 1770 Mitov::VariableMinMaxPropertyFloat<5, float, ::VisuinoConstants::FloatValue20, ::VisuinoConstants::FloatValue1, ::VisuinoConstants::FloatValue6 >, // InitialValue = 0.5 (Default) 1771 Mitov::ConstantProperty<8, uint32_t, 2400 >, // MaxPulse = 2400 (Default) 1772 Mitov::ConstantProperty<7, uint32_t, 544 >, // MinPulse = 544 (Default) 1773 5, // OutputPin 1774 Mitov::ConstantProperty<6, bool, false > // Reversed = False (Default) 1775 > Servo1; // TArduinoServo 1776} // Types 1777 1778namespace Instances 1779{ 1780Types::Servo1 Servo1; // TArduinoServo 1781} // Instances 1782 1783namespace Types 1784{ 1785typedef Mitov::SRFlipFlop< 1786 Mitov::TypedVariableValue<5, bool, ::ComponentVariables::Variable29, false >, // InitialValue = False (Default) 1787 Mitov::DigitalPin_NoImplementation<4 >, // InvertedOutputPin 1788 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive27 > // OutputPin 1789 > SRFlipFlop1; // TArduinoSRFlipFlop 1790} // Types 1791 1792namespace Instances 1793{ 1794Types::SRFlipFlop1 SRFlipFlop1; // TArduinoSRFlipFlop 1795} // Instances 1796 1797namespace Types 1798{ 1799typedef Mitov::CompareValue< 1800 Mitov::CompareType_Implementation_ctBigger, // CompareType = 2 1801 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1802 Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable30 >, // FStarted = 0 1803 Mitov::ConstantProperty<8, bool, true >, // OnlyChanged = True (Default) 1804 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive28 >, // OutputPin 1805 float, // TYPE 1806 Mitov::ConstantPropertyFloat<6, float, ::VisuinoConstants::FloatValue20 > // Value = 0.5 1807 > CompareValue1; // TArduinoCompareValue 1808} // Types 1809 1810namespace Instances 1811{ 1812Types::CompareValue1 CompareValue1 = Types::CompareValue1( 0.0f ); // TArduinoCompareValue 1813} // Instances 1814 1815namespace Types 1816{ 1817typedef Mitov::BooleanInverter< 1818 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1819 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive29 > // OutputPin 1820 > Inverter7; // TArduinoBooleanInverter 1821} // Types 1822 1823namespace Instances 1824{ 1825Types::Inverter7 Inverter7; // TArduinoBooleanInverter 1826} // Instances 1827 1828namespace Types 1829{ 1830typedef Mitov::MitovSerialGPS< 1831 Mitov::ConstantProperty<10, uint32_t, 2000 >, // BaseYear = 2000 (Default) 1832 Mitov::AnalogPin_NoImplementation<5 >, // CourseOutputPins_0 1833 Mitov::AnalogPin_NoImplementation<6 >, // CourseOutputPins_1 1834 Mitov::TypedPin_NoImplementation<7, Mitov::TDateTime >, // DateTimeOutputPin 1835 Mitov::ConstantProperty<3, bool, true >, // Enabled = True (Default) 1836 Mitov::ConstantProperty<34, uint32_t, 0 >, // FHour = 0 1837 Mitov::ConstantProperty<40, uint32_t, 0 >, // FMilliSeconds = 0 1838 Mitov::ConstantProperty<36, uint32_t, 0 >, // FMinutes = 0 1839 Mitov::ConstantProperty<38, uint32_t, 0 >, // FSeconds = 0 1840 Mitov::TypedVariable<32, uint32_t, ::ComponentVariables::Variable32 >, // FState = 1 1841 Mitov::TypedVariable<30, bool, ::ComponentVariables::Variable31 >, // FValuePopulated = 0 1842 Mitov::AnalogPin_NoImplementation<29 >, // HorizontalPrecisionOutputPin 1843 Mitov::DigitalPin_NoImplementation<8 >, // InvalidOutputPin 1844 Mitov::AnalogPin_EmbeddedPinImplementation<14, ::PinCalls::PinCallerReceive30 >, // LocationOutputPins_0 1845 Mitov::AnalogPin_NoImplementation<15 >, // LocationOutputPins_1 1846 Mitov::AnalogPin_NoImplementation<16 >, // LocationOutputPins_2 1847 Mitov::AnalogPin_NoImplementation<17 >, // LocationOutputPins_3 1848 Mitov::AnalogPin_NoImplementation<18 >, // LocationOutputPins_4 1849 Mitov::DigitalPin_NoImplementation<9 >, // MessageErrorOutputPin 1850 Mitov::TypedPin_NoImplementation<27, uint32_t >, // ModeOutputPin 1851 Mitov::TypedPin_NoImplementation<28, uint32_t >, // NavigationStatusOutputPin 1852 Mitov::TypedPin_EmbeddedPinImplementation<20, ::PinCalls::PinCallerReceive31, uint32_t >, // SatellitesOutputPins_0 1853 Mitov::ClockPin_NoImplementation<21 >, // SatellitesOutputPins_1 1854 Mitov::TypedPin_NoImplementation<22, uint32_t >, // SatellitesOutputPins_2 1855 Mitov::TypedPin_NoImplementation<23, uint32_t >, // SatellitesOutputPins_3 1856 Mitov::TypedPin_NoImplementation<24, uint32_t >, // SatellitesOutputPins_4 1857 Mitov::TypedPin_NoImplementation<25, uint32_t >, // SatellitesOutputPins_5 1858 Mitov::ClockPin_NoImplementation<26 > // SatellitesOutputPins_6 1859 > GPS1; // TArduinoSerialGPS 1860} // Types 1861 1862namespace Instances 1863{ 1864Types::GPS1 GPS1; // TArduinoSerialGPS 1865} // Instances 1866 1867namespace Types 1868{ 1869typedef Mitov::MapRange< 1870 Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) 1871 Mitov::NestedProperty<9, Mitov::ValueRange< 1872 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue21 >, // Value_Max = 89 1873 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue1 > // Value_Min = 0 (Default) 1874 > >, // InputRange 1875 Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive32 >, // OutputPin 1876 Mitov::NestedProperty<13, Mitov::ValueRange< 1877 Mitov::ConstantPropertyFloat<12, float, ::VisuinoConstants::FloatValue6 >, // Value_Max = 1 (Default) 1878 Mitov::ConstantPropertyFloat<11, float, ::VisuinoConstants::FloatValue20 > // Value_Min = 0.5 1879 > > // OutputRange 1880 > MapRange1; // TArduinoMapRange 1881} // Types 1882 1883namespace Instances 1884{ 1885Types::MapRange1 MapRange1; // TArduinoMapRange 1886} // Instances 1887 1888namespace Types 1889{ 1890typedef Mitov::CompareValue< 1891 Mitov::CompareType_Implementation_ctBiggerOrEqual, // CompareType = 4 1892 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1893 Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable33 >, // FStarted = 0 1894 Mitov::ConstantProperty<8, bool, true >, // OnlyChanged = True (Default) 1895 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive33 >, // OutputPin 1896 uint32_t, // TYPE 1897 Mitov::ConstantProperty<6, uint32_t, 3 > // Value = 3 1898 > CompareValue2; // TArduinoUnsignedCompareValue 1899} // Types 1900 1901namespace Instances 1902{ 1903Types::CompareValue2 CompareValue2 = Types::CompareValue2( 0 ); // TArduinoUnsignedCompareValue 1904} // Instances 1905 1906namespace Types 1907{ 1908typedef Mitov::BooleanOperation< 1909 Mitov::BooleanAnd, // BASE 1910 2, // COUNT_InputPins 1911 Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable35 >, // FModified = 0 1912 Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive34, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable34 > > // OutputPin 1913 > And2; // TArduinoBooleanAnd 1914} // Types 1915 1916namespace Instances 1917{ 1918Types::And2 And2; // TArduinoBooleanAnd 1919} // Instances 1920 1921namespace Types 1922{ 1923typedef Mitov::Timer< 1924 Mitov::ConstantProperty<6, bool, false >, // AutoRepeat = False (Default) 1925 Mitov::ConstantProperty<7, bool, false >, // CanRestart = False 1926 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1927 Mitov::TypedVariable<10, bool, ::ComponentVariables::Variable36 >, // FValue = 0 1928 Mitov::ConstantProperty<5, uint32_t, 250000 >, // Interval = 250000 1929 Mitov::DigitalPin_DirectBoardPinImplementation<7 > // OutputPin 1930 > Timer1; // TArduinoTimer 1931} // Types 1932 1933namespace Instances 1934{ 1935Types::Timer1 Timer1; // TArduinoTimer 1936} // Instances 1937 1938namespace Types 1939{ 1940typedef Mitov::CommonMux< 1941 2, // COUNT_InputPins 1942 Mitov::VariableMinMaxPropertySharedBits<8, uint32_t, 0, ::ComponentVariables::Variable37, 0, 4000 >, // InitialChannel = 0 (Default) 1943 Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive35 >, // OutputPin 1944 float // TYPE 1945 > AnalogMux1; // TArduinoAnalogMux 1946} // Types 1947 1948namespace Instances 1949{ 1950Types::AnalogMux1 AnalogMux1; // TArduinoAnalogMux 1951} // Instances 1952 1953namespace Types 1954{ 1955typedef Mitov::Counter< 1956 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1957 Mitov::TypedVariableMinMax<22, int32_t, ::ComponentVariables::Variable39, 0, 2 >, // FCount = 0 1958 Mitov::ConstantProperty<6, int32_t, 0 >, // InitialValue = 0 (Default) 1959 Mitov::NestedProperty<11, Mitov::GenericValueLimit< 1960 Mitov::DigitalPin_NoImplementation<8 >, // ReachedOutputPin 1961 Mitov::ConstantProperty<10, bool, true >, // RollOver = True (Default) 1962 Mitov::ConstantProperty<9, int32_t, 2 > // Value = 2 1963 > >, // Value_Max 1964 Mitov::NestedProperty<16, Mitov::GenericValueLimit< 1965 Mitov::DigitalPin_NoImplementation<13 >, // ReachedOutputPin 1966 Mitov::ConstantProperty<15, bool, true >, // RollOver = True (Default) 1967 Mitov::ConstantProperty<14, int32_t, 0 > // Value = 0 1968 > >, // Value_Min 1969 Mitov::TypedVariable<20, bool, ::ComponentVariables::Variable38 >, // NeedsUpdate = 0 1970 Mitov::TypedPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive36, int32_t >, // OutputPin 1971 Mitov::ConstantProperty<19, bool, false > // Reversed = False (Default) 1972 > Counter1; // TArduinoCounter 1973} // Types 1974 1975namespace Instances 1976{ 1977Types::Counter1 Counter1; // TArduinoCounter 1978} // Instances 1979 1980namespace Types 1981{ 1982typedef Mitov::Button< 1983 Mitov::ConstantProperty<5, uint32_t, 50 >, // DebounceInterval = 50 (Default) 1984 Mitov::TypedVariable<6, bool, ::ComponentVariables::Variable40 >, // FLastValue = 0 1985 Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable41 >, // FValue = 0 1986 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive37 > // OutputPin 1987 > Button1; // TArduinoButton 1988} // Types 1989 1990namespace Instances 1991{ 1992Types::Button1 Button1; // TArduinoButton 1993} // Instances 1994 1995namespace Types 1996{ 1997typedef Mitov::BooleanInverter< 1998 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 1999 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive38 > // OutputPin 2000 > Inverter8; // TArduinoBooleanInverter 2001} // Types 2002 2003namespace Instances 2004{ 2005Types::Inverter8 Inverter8; // TArduinoBooleanInverter 2006} // Instances 2007 2008namespace Types 2009{ 2010typedef Mitov::ValueSource< 2011 0, // COUNT_Ramp_Elements = 0 2012 Mitov::EmbeddedCallChain<CallChains::TryActive2 >, // Elements_TryActive 2013 Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable42 >, // FStarted = False 2014 Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive39 >, // OutputPin 2015 float, // TYPE 2016 Mitov::VariablePropertyFloat<5, float, ::VisuinoConstants::FloatValue1 > // Value = 0 (Default) 2017 > AnalogValue2; // TArduinoFloatValue 2018} // Types 2019 2020namespace Instances 2021{ 2022Types::AnalogValue2 AnalogValue2; // TArduinoFloatValue 2023} // Instances 2024 2025namespace Types 2026{ 2027typedef Mitov::ArduinoSetValueElement< 2028 Declarations::Types::AnalogValue2, // 0_TYPE_OWNER 2029 Declarations::Instances::AnalogValue2, // 1_NAME_OWNER 2030 Mitov::ConstantPropertyFloat<2, float, ::VisuinoConstants::FloatValue1 > // Value = 0 (Default) 2031 > TArduinoAnalogSetValueElement1; 2032} // Types 2033 2034namespace Instances 2035{ 2036Types::TArduinoAnalogSetValueElement1 TArduinoAnalogSetValueElement1; 2037} // Instances 2038 2039namespace Types 2040{ 2041typedef Mitov::ArduinoSetValueElement< 2042 Declarations::Types::AnalogValue2, // 0_TYPE_OWNER 2043 Declarations::Instances::AnalogValue2, // 1_NAME_OWNER 2044 Mitov::ConstantPropertyFloat<2, float, ::VisuinoConstants::FloatValue12 > // Value = 90 2045 > TArduinoAnalogSetValueElement2; 2046} // Types 2047 2048namespace Instances 2049{ 2050Types::TArduinoAnalogSetValueElement2 TArduinoAnalogSetValueElement2; 2051} // Instances 2052 2053 Mitov::ClockPin_EmbeddedPinImplementation<6, ::PinCalls::PinCallerReceive40 > SourcePin1; 2054 Mitov::ClockPin_EmbeddedPinImplementation<7, ::PinCalls::PinCallerReceive41 > SourcePin2; 2055namespace Types 2056{ 2057typedef Mitov::ClockDemux< 2058 2, // COUNT_OutputPins 2059 Mitov::VariableMinMaxPropertySharedBits<8, uint32_t, 0, ::ComponentVariables::Variable43, 0, 4000 >, // InitialChannel = 0 (Default) 2060 Mitov::EmbeddedCallChain<CallChains::SetPinValue1 > // OutputPins_SetPinValue 2061 > ClockDemmux1; // TArduinoClockDemux 2062} // Types 2063 2064namespace Instances 2065{ 2066Types::ClockDemmux1 ClockDemmux1; // TArduinoClockDemux 2067} // Instances 2068 2069namespace Types 2070{ 2071typedef Mitov::Counter< 2072 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 2073 Mitov::TypedVariableMinMax<22, int32_t, ::ComponentVariables::Variable45, 0, 1 >, // FCount = 0 2074 Mitov::ConstantProperty<6, int32_t, 0 >, // InitialValue = 0 (Default) 2075 Mitov::NestedProperty<11, Mitov::GenericValueLimit< 2076 Mitov::DigitalPin_NoImplementation<8 >, // ReachedOutputPin 2077 Mitov::ConstantProperty<10, bool, true >, // RollOver = True (Default) 2078 Mitov::ConstantProperty<9, int32_t, 1 > // Value = 1 2079 > >, // Value_Max 2080 Mitov::NestedProperty<16, Mitov::GenericValueLimit< 2081 Mitov::DigitalPin_NoImplementation<13 >, // ReachedOutputPin 2082 Mitov::ConstantProperty<15, bool, true >, // RollOver = True (Default) 2083 Mitov::ConstantProperty<14, int32_t, 0 > // Value = 0 2084 > >, // Value_Min 2085 Mitov::TypedVariable<20, bool, ::ComponentVariables::Variable44 >, // NeedsUpdate = 0 2086 Mitov::TypedPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive42, int32_t >, // OutputPin 2087 Mitov::ConstantProperty<19, bool, false > // Reversed = False (Default) 2088 > Counter2; // TArduinoCounter 2089} // Types 2090 2091namespace Instances 2092{ 2093Types::Counter2 Counter2; // TArduinoCounter 2094} // Instances 2095 2096namespace Types 2097{ 2098typedef Mitov::PulseGenerator_Shared< 2099 Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue1 >, // Asymmetry = 0 (Default) 2100 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 2101 Mitov::ConstantPropertyFloat<17, float, ::VisuinoConstants::FloatValue1>, // FPhase = 0 2102 Mitov::TypedVariable<15, bool, ::ComponentVariables::Variable46 >, // FValue = 0 2103 Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue20 >, // Frequency = 0.5 2104 Mitov::ConstantProperty<5, bool, false >, // InitialValue = False (Default) 2105 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive43 >, // OutputPin 2106 Mitov::ConstantPropertyFloat<9, float, ::VisuinoConstants::FloatValue1 >, // Phase = 0 (Default) 2107 Mitov::NestedProperty<14, Mitov::TArduinoGeneratorWhenDisabled< 2108 Mitov::ConstantProperty<13, bool, false >, // CompleteCycle = False (Default) 2109 Mitov::ConstantProperty<12, bool, true >, // FCycleCompleted = True 2110 Mitov::ConstantProperty<11, bool, false > // Reset = False (Default) 2111 > > // WhenDisabled 2112 > PulseGenerator3; // TArduinoPulseGenerator 2113} // Types 2114 2115namespace Instances 2116{ 2117Types::PulseGenerator3 PulseGenerator3; // TArduinoPulseGenerator 2118} // Instances 2119 2120namespace Types 2121{ 2122typedef Mitov::BooleanOperation< 2123 Mitov::BooleanOr, // BASE 2124 2, // COUNT_InputPins 2125 Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable48 >, // FModified = 0 2126 Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive44, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable47 > > // OutputPin 2127 > Or3; // TArduinoBooleanOr 2128} // Types 2129 2130namespace Instances 2131{ 2132Types::Or3 Or3; // TArduinoBooleanOr 2133} // Instances 2134 2135namespace Types 2136{ 2137typedef Mitov::CompareValue< 2138 Mitov::CompareType_Implementation_ctEqual, // CompareType = 0 (Default) 2139 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 2140 Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable49 >, // FStarted = 0 2141 Mitov::ConstantProperty<8, bool, true >, // OnlyChanged = True (Default) 2142 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive45 >, // OutputPin 2143 int32_t, // TYPE 2144 Mitov::ConstantProperty<6, int32_t, 1 > // Value = 1 2145 > CompareValue3; // TArduinoIntegerCompareValue 2146} // Types 2147 2148namespace Instances 2149{ 2150Types::CompareValue3 CompareValue3 = Types::CompareValue3( 0 ); // TArduinoIntegerCompareValue 2151} // Instances 2152 2153namespace Types 2154{ 2155typedef Mitov::CompareValue< 2156 Mitov::CompareType_Implementation_ctEqual, // CompareType = 0 (Default) 2157 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) 2158 Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable50 >, // FStarted = 0 2159 Mitov::ConstantProperty<8, bool, true >, // OnlyChanged = True (Default) 2160 Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive46 >, // OutputPin 2161 int32_t, // TYPE 2162 Mitov::ConstantProperty<6, int32_t, 2 > // Value = 2 2163 > CompareValue4; // TArduinoIntegerCompareValue 2164} // Types 2165 2166namespace Instances 2167{ 2168Types::CompareValue4 CompareValue4 = Types::CompareValue4( 0 ); // TArduinoIntegerCompareValue 2169} // Instances 2170 2171namespace Types 2172{ 2173typedef Mitov::BooleanOperation< 2174 Mitov::BooleanOr, // BASE 2175 2, // COUNT_InputPins 2176 Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable52 >, // FModified = 0 2177 Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive47, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable51 > > // OutputPin 2178 > Or4; // TArduinoBooleanOr 2179} // Types 2180 2181namespace Instances 2182{ 2183Types::Or4 Or4; // TArduinoBooleanOr 2184} // Instances 2185 2186namespace Types 2187{ 2188typedef Mitov::BooleanOperation< 2189 Mitov::BooleanOr, // BASE 2190 2, // COUNT_InputPins 2191 Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable54 >, // FModified = 0 2192 Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive48, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable53 > > // OutputPin 2193 > Or5; // TArduinoBooleanOr 2194} // Types 2195 2196namespace Instances 2197{ 2198Types::Or5 Or5; // TArduinoBooleanOr 2199} // Instances 2200 2201} // Declarations 2202 2203// Type Converters 2204 2205namespace TypeConverters 2206{ 2207Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable55 > > Converter0; 2208Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable56 > > Converter1; 2209Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable57 > > Converter2; 2210Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable58 > > Converter3; 2211Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable59 > > Converter4; 2212Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable60 > > Converter5; 2213} // TypeConverters 2214 2215// Bindings 2216 2217namespace Bindings 2218{ 2219inline void PulseGenerator1_EnabledInputPin_o_Receive( void * ___PTR___, bool __AOriginalValue__ ) 2220{ 2221 bool ___A_VALUE___ = *(bool *)___PTR___; 2222 if( __AOriginalValue__ == ___A_VALUE___ ) 2223 return; 2224 2225 Declarations::Instances::PulseGenerator1.Enabled() = ___A_VALUE___; 2226 Declarations::Instances::PulseGenerator1.UpdateEnabled(); 2227} 2228 2229inline void PulseGenerator2_EnabledInputPin_o_Receive( void * ___PTR___, bool __AOriginalValue__ ) 2230{ 2231 bool ___A_VALUE___ = *(bool *)___PTR___; 2232 if( __AOriginalValue__ == ___A_VALUE___ ) 2233 return; 2234 2235 Declarations::Instances::PulseGenerator2.Enabled() = ___A_VALUE___; 2236 Declarations::Instances::PulseGenerator2.UpdateEnabled(); 2237} 2238 2239inline void Servo1_EnabledInputPin_o_Receive( void * ___PTR___, bool __AOriginalValue__ ) 2240{ 2241 bool ___A_VALUE___ = *(bool *)___PTR___; 2242 if( __AOriginalValue__ == ___A_VALUE___ ) 2243 return; 2244 2245 Declarations::Instances::Servo1.Enabled() = ___A_VALUE___; 2246 Declarations::Instances::Servo1.UpdateEnabled(); 2247} 2248 2249} // Bindings 2250 2251// Call Chains 2252 2253namespace CallChains 2254{ 2255void SendByte1::Call( uint8_t AValue ) 2256{ 2257 BoardDeclarations::Instances::TArduinoI2C1.SendByte( AValue ); 2258} 2259 2260void RequestData1::Call() 2261{ 2262 BoardDeclarations::Instances::TArduinoI2C1.RequestData(); 2263} 2264 2265void TryActive1::Call( bool & AResult ) 2266{ 2267 Declarations::Instances::TArduinoAnalogStateSetValueElement5.TryActive( AResult ); 2268 Declarations::Instances::TArduinoAnalogStateSetValueElement4.TryActive( AResult ); 2269 Declarations::Instances::TArduinoAnalogStateSetValueElement3.TryActive( AResult ); 2270 Declarations::Instances::TArduinoAnalogStateSetValueElement2.TryActive( AResult ); 2271 Declarations::Instances::TArduinoAnalogStateSetValueElement1.TryActive( AResult ); 2272} 2273 2274void TryActive2::Call( bool & AResult ) 2275{ 2276} 2277 2278void SetPinValue1::Call( uint32_t AIndex ) 2279{ 2280 switch( AIndex ) 2281 { 2282 case 0: ::Declarations::SourcePin1.ClockPin(); break; 2283 case 1: ::Declarations::SourcePin2.ClockPin(); break; 2284 } 2285} 2286 2287void PeriodicCall1::Call() 2288{ 2289 Declarations::Instances::PulseGenerator3.PeriodicCall(); 2290} 2291 2292} // CallChains 2293 2294// Pin Call Declarations 2295 2296namespace PinCalls 2297{ 2298void PinCallerConverterReceive1( void *_Data ); 2299void PinCallerConverterReceive2( void *_Data ); 2300void PinCallerConverterReceive3( void *_Data ); 2301void PinCallerConverterReceive4( void *_Data ); 2302void PinCallerConverterReceive5( void *_Data ); 2303void PinCallerConverterReceive6( void *_Data ); 2304} // PinCalls 2305 2306// Pin Call Implementations 2307 2308namespace PinCalls 2309{ 2310void PinCallerReceive1::Notify( void *_Data ) 2311{ 2312 Declarations::Instances::GPS1._DirectPinReceive( _Data ); 2313} 2314 2315void PinCallerReceive0::Notify( void *_Data ) 2316{ 2317 Declarations::Instances::Button1.InputPin_o_Receive( _Data ); 2318} 2319 2320void PinCallerReceive2::Notify( void *_Data ) 2321{ 2322 Declarations::Instances::CompareRange2.InputPin_o_Receive( _Data ); 2323} 2324 2325void PinCallerReceive3::Notify( void *_Data ) 2326{ 2327 Declarations::Instances::CompareRange1.InputPin_o_Receive( _Data ); 2328 Declarations::Instances::CompareValue1.InputPin_o_Receive( _Data ); 2329} 2330 2331void PinCallerReceive4::Notify( void *_Data ) 2332{ 2333 Declarations::Instances::CompareRange3.InputPin_o_Receive( _Data ); 2334 Declarations::Instances::CompareRange4.InputPin_o_Receive( _Data ); 2335 Declarations::Instances::CompareRange5.InputPin_o_Receive( _Data ); 2336 Declarations::Instances::CompareRange6.InputPin_o_Receive( _Data ); 2337 Declarations::Instances::CompareRange7.InputPin_o_Receive( _Data ); 2338 Declarations::Instances::CompareRange8.InputPin_o_Receive( _Data ); 2339} 2340 2341void PinCallerReceive5::Notify( void *_Data ) 2342{ 2343 Declarations::Instances::CompassHeading1.InputPins_o_Receive( 0, _Data ); 2344} 2345 2346void PinCallerReceive6::Notify( void *_Data ) 2347{ 2348 Declarations::Instances::CompassHeading1.InputPins_o_Receive( 1, _Data ); 2349} 2350 2351void PinCallerReceive7::Notify( void *_Data ) 2352{ 2353 Declarations::Instances::Or1.InputPins_o_Receive( 1, _Data ); 2354} 2355 2356void PinCallerReceive8::Notify( void *_Data ) 2357{ 2358 Declarations::Instances::And1.InputPins_o_Receive( 0, _Data ); 2359} 2360 2361void PinCallerReceive9::Notify( void *_Data ) 2362{ 2363 Declarations::Instances::And1.InputPins_o_Receive( 1, _Data ); 2364} 2365 2366void PinCallerReceive10::Notify( void *_Data ) 2367{ 2368 Declarations::Instances::Or1.InputPins_o_Receive( 0, _Data ); 2369} 2370 2371void PinCallerReceive11::Notify( void *_Data ) 2372{ 2373 Declarations::Instances::Inverter1.InputPin_o_Receive( _Data ); 2374} 2375 2376void PinCallerReceive12::Notify( void *_Data ) 2377{ 2378 Declarations::Instances::And2.InputPins_o_Receive( 0, _Data ); 2379} 2380 2381void PinCallerReceive13::Notify( void *_Data ) 2382{ 2383 Declarations::Instances::Or2.InputPins_o_Receive( 0, _Data ); 2384 TypeConverters::Converter0.Convert( _Data, PinCallerConverterReceive1 ); 2385 Declarations::Instances::Inverter7.InputPin_o_Receive( _Data ); 2386 Declarations::Instances::Or5.InputPins_o_Receive( 0, _Data ); 2387} 2388 2389void PinCallerConverterReceive1( void *_Data ) 2390{ 2391 Declarations::Instances::Delay1.StartInputPin_o_Receive( _Data ); 2392} 2393void PinCallerReceive14::Notify( void *_Data ) 2394{ 2395 Declarations::Instances::Or2.InputPins_o_Receive( 1, _Data ); 2396 TypeConverters::Converter1.Convert( _Data, PinCallerConverterReceive2 ); 2397} 2398 2399void PinCallerConverterReceive2( void *_Data ) 2400{ 2401 Declarations::Instances::Delay1.ResetInputPin_o_Receive( _Data ); 2402} 2403void PinCallerReceive15::Notify( void *_Data ) 2404{ 2405 Declarations::Instances::PulseGenerator2.Frequency().InputPin_o_Receive( _Data ); 2406} 2407 2408void PinCallerReceive16::Notify( void *_Data ) 2409{ 2410 Declarations::Instances::Inverter5.InputPin_o_Receive( _Data ); 2411} 2412 2413void PinCallerReceive17::Notify( void *_Data ) 2414{ 2415 Declarations::Instances::Inverter4.InputPin_o_Receive( _Data ); 2416} 2417 2418void PinCallerReceive18::Notify( void *_Data ) 2419{ 2420 Declarations::Instances::Inverter3.InputPin_o_Receive( _Data ); 2421} 2422 2423void PinCallerReceive19::Notify( void *_Data ) 2424{ 2425 Declarations::Instances::Inverter2.InputPin_o_Receive( _Data ); 2426} 2427 2428void PinCallerReceive20::Notify( void *_Data ) 2429{ 2430 Declarations::Instances::TArduinoAnalogStateSetValueElement5.InputPin_o_Receive( _Data ); 2431} 2432 2433void PinCallerReceive21::Notify( void *_Data ) 2434{ 2435 Declarations::Instances::TArduinoAnalogStateSetValueElement4.InputPin_o_Receive( _Data ); 2436} 2437 2438void PinCallerReceive22::Notify( void *_Data ) 2439{ 2440 Declarations::Instances::TArduinoAnalogStateSetValueElement3.InputPin_o_Receive( _Data ); 2441} 2442 2443void PinCallerReceive23::Notify( void *_Data ) 2444{ 2445 Declarations::Instances::TArduinoAnalogStateSetValueElement2.InputPin_o_Receive( _Data ); 2446} 2447 2448void PinCallerReceive24::Notify( void *_Data ) 2449{ 2450 Declarations::Instances::TArduinoAnalogStateSetValueElement1.InputPin_o_Receive( _Data ); 2451} 2452 2453void PinCallerReceive25::Notify( void *_Data ) 2454{ 2455 Declarations::Instances::Inverter6.InputPin_o_Receive( _Data ); 2456} 2457 2458void PinCallerReceive26::Notify( void *_Data ) 2459{ 2460 Declarations::Instances::SRFlipFlop1.SetInputPin_o_Receive( _Data ); 2461} 2462 2463void PinCallerReceive27::Notify( void *_Data ) 2464{ 2465 TypeConverters::Converter2.Convert( _Data, PinCallerConverterReceive3 ); 2466 Declarations::Instances::Or3.InputPins_o_Receive( 0, _Data ); 2467} 2468 2469void PinCallerConverterReceive3( void *_Data ) 2470{ 2471 Declarations::Instances::Timer1.StartInputPin_o_Receive( _Data ); 2472} 2473void PinCallerReceive28::Notify( void *_Data ) 2474{ 2475 TypeConverters::Converter3.Convert( _Data, PinCallerConverterReceive4 ); 2476} 2477 2478void PinCallerConverterReceive4( void *_Data ) 2479{ 2480 Declarations::Instances::SRFlipFlop1.ResetInputPin_o_Receive( _Data ); 2481 Declarations::Instances::Timer1.ResetInputPin_o_Receive( _Data ); 2482} 2483void PinCallerReceive29::Notify( void *_Data ) 2484{ 2485 bool __Value_PulseGenerator2_EnabledInputPin__ = Declarations::Instances::PulseGenerator2.Enabled().GetValue(); 2486 ::Bindings::PulseGenerator2_EnabledInputPin_o_Receive( _Data, __Value_PulseGenerator2_EnabledInputPin__ ); 2487} 2488 2489void PinCallerReceive30::Notify( void *_Data ) 2490{ 2491 Declarations::Instances::AnalogMux1.InputPins_o_Receive( 0, _Data ); 2492} 2493 2494void PinCallerReceive31::Notify( void *_Data ) 2495{ 2496 Declarations::Instances::CompareValue2.InputPin_o_Receive( _Data ); 2497} 2498 2499void PinCallerReceive32::Notify( void *_Data ) 2500{ 2501 Declarations::Instances::Servo1.InputPin_o_Receive( _Data ); 2502} 2503 2504void PinCallerReceive33::Notify( void *_Data ) 2505{ 2506 Declarations::Instances::And2.InputPins_o_Receive( 1, _Data ); 2507} 2508 2509void PinCallerReceive34::Notify( void *_Data ) 2510{ 2511 BoardDeclarations::Instances::ArduinoDigitalChannel_6.DigitalInputPin_o_Receive( _Data ); 2512 Declarations::Instances::Or4.InputPins_o_Receive( 0, _Data ); 2513} 2514 2515void PinCallerReceive35::Notify( void *_Data ) 2516{ 2517 Declarations::Instances::MapRange1.InputPin_o_Receive( _Data ); 2518} 2519 2520void PinCallerReceive36::Notify( void *_Data ) 2521{ 2522 Declarations::Instances::AnalogMux1.SelectInputPin_o_Receive( _Data ); 2523 Declarations::Instances::CompareValue3.InputPin_o_Receive( _Data ); 2524 Declarations::Instances::CompareValue4.InputPin_o_Receive( _Data ); 2525} 2526 2527void PinCallerReceive37::Notify( void *_Data ) 2528{ 2529 Declarations::Instances::Inverter8.InputPin_o_Receive( _Data ); 2530} 2531 2532void PinCallerReceive38::Notify( void *_Data ) 2533{ 2534 TypeConverters::Converter4.Convert( _Data, PinCallerConverterReceive5 ); 2535} 2536 2537void PinCallerConverterReceive5( void *_Data ) 2538{ 2539 Declarations::Instances::Counter1.InputPin_o_Receive( _Data ); 2540} 2541void PinCallerReceive39::Notify( void *_Data ) 2542{ 2543 Declarations::Instances::AnalogMux1.InputPins_o_Receive( 1, _Data ); 2544} 2545 2546void PinCallerReceive40::Notify( void *_Data ) 2547{ 2548 Declarations::Instances::TArduinoAnalogSetValueElement1.InputPin_o_Receive( _Data ); 2549} 2550 2551void PinCallerReceive41::Notify( void *_Data ) 2552{ 2553 Declarations::Instances::TArduinoAnalogSetValueElement2.InputPin_o_Receive( _Data ); 2554} 2555 2556void PinCallerReceive42::Notify( void *_Data ) 2557{ 2558 Declarations::Instances::ClockDemmux1.SelectInputPin_o_Receive( _Data ); 2559 Declarations::Instances::ClockDemmux1.InputPin_o_Receive( _Data ); 2560} 2561 2562void PinCallerReceive43::Notify( void *_Data ) 2563{ 2564 TypeConverters::Converter5.Convert( _Data, PinCallerConverterReceive6 ); 2565} 2566 2567void PinCallerConverterReceive6( void *_Data ) 2568{ 2569 Declarations::Instances::Counter2.InputPin_o_Receive( _Data ); 2570} 2571void PinCallerReceive44::Notify( void *_Data ) 2572{ 2573 bool __Value_Servo1_EnabledInputPin__ = Declarations::Instances::Servo1.Enabled().GetValue(); 2574 ::Bindings::Servo1_EnabledInputPin_o_Receive( _Data, __Value_Servo1_EnabledInputPin__ ); 2575 BoardDeclarations::Instances::ArduinoDigitalChannel_13.DigitalInputPin_o_Receive( _Data ); 2576} 2577 2578void PinCallerReceive45::Notify( void *_Data ) 2579{ 2580 Declarations::Instances::Or3.InputPins_o_Receive( 1, _Data ); 2581} 2582 2583void PinCallerReceive46::Notify( void *_Data ) 2584{ 2585 Declarations::Instances::Or4.InputPins_o_Receive( 1, _Data ); 2586 Declarations::Instances::Or5.InputPins_o_Receive( 1, _Data ); 2587} 2588 2589void PinCallerReceive47::Notify( void *_Data ) 2590{ 2591 bool __Value_PulseGenerator1_EnabledInputPin__ = Declarations::Instances::PulseGenerator1.Enabled().GetValue(); 2592 ::Bindings::PulseGenerator1_EnabledInputPin_o_Receive( _Data, __Value_PulseGenerator1_EnabledInputPin__ ); 2593} 2594 2595void PinCallerReceive48::Notify( void *_Data ) 2596{ 2597 Declarations::Instances::And1.InputPins_o_Receive( 2, _Data ); 2598} 2599 2600} // PinCalls 2601 2602namespace ComponentsHardware 2603{ 2604void SystemUpdateHardware() 2605{ 2606} 2607} // ComponentsHardware 2608 2609//The setup function is called once at startup of the sketch 2610void setup() 2611{ 2612 BoardDeclarations::SystemPeriodMicros_1000000.SystemStarted(); 2613 BoardDeclarations::Instances::SerialPort0.SystemInit(); 2614 BoardDeclarations::Instances::TArduinoI2C1.SystemInit(); 2615 BoardDeclarations::Instances::ArduinoDigitalChannel_6.SystemInit(); 2616 BoardDeclarations::Instances::ArduinoDigitalChannel_8.SystemInit(); 2617 BoardDeclarations::Instances::ArduinoDigitalChannel_13.SystemInit(); 2618 Declarations::Instances::AccelerometerGyroscope1.SystemInit(); 2619 Declarations::Instances::Counter1.SystemInit(); 2620 Declarations::Instances::Counter2.SystemInit(); 2621 BoardDeclarations::Instances::ArduinoDigitalChannel_6.SystemStart(); 2622 BoardDeclarations::Instances::ArduinoDigitalChannel_8.SystemStart(); 2623 BoardDeclarations::Instances::ArduinoDigitalChannel_13.SystemStart(); 2624 Declarations::Instances::AccelerometerGyroscope1.SystemStart(); 2625 Declarations::Instances::Compass1.SystemStart(); 2626 Declarations::Instances::PulseGenerator1.SystemStart(); 2627 Declarations::Instances::Or1.SystemStart(); 2628 Declarations::Instances::CompareRange1.SystemStart(); 2629 Declarations::Instances::CompareRange2.SystemStart(); 2630 Declarations::Instances::And1.SystemStart(); 2631 Declarations::Instances::CompareRange3.SystemStart(); 2632 Declarations::Instances::Or2.SystemStart(); 2633 Declarations::Instances::PulseGenerator2.SystemStart(); 2634 Declarations::Instances::AnalogValue1.SystemStart(); 2635 Declarations::Instances::CompareRange4.SystemStart(); 2636 Declarations::Instances::CompareRange5.SystemStart(); 2637 Declarations::Instances::CompareRange6.SystemStart(); 2638 Declarations::Instances::CompareRange7.SystemStart(); 2639 Declarations::Instances::CompareRange8.SystemStart(); 2640 Declarations::Instances::Servo1.SystemStart(); 2641 Declarations::Instances::SRFlipFlop1.SystemStart(); 2642 Declarations::Instances::CompareValue1.SystemStart(); 2643 Declarations::Instances::CompareValue2.SystemStart(); 2644 Declarations::Instances::And2.SystemStart(); 2645 Declarations::Instances::Timer1.SystemStart(); 2646 Declarations::Instances::AnalogMux1.SystemStart(); 2647 Declarations::Instances::Counter1.SystemStart(); 2648 Declarations::Instances::Button1.SystemStart(); 2649 Declarations::Instances::AnalogValue2.SystemStart(); 2650 Declarations::Instances::Counter2.SystemStart(); 2651 Declarations::Instances::PulseGenerator3.SystemStart(); 2652 Declarations::Instances::Or3.SystemStart(); 2653 Declarations::Instances::CompareValue3.SystemStart(); 2654 Declarations::Instances::CompareValue4.SystemStart(); 2655 Declarations::Instances::Or4.SystemStart(); 2656 Declarations::Instances::Or5.SystemStart(); 2657} 2658 2659// The loop function is called in an endless loop 2660void loop() 2661{ 2662 BoardDeclarations::SystemPeriodMicros_1000000.SystemLoopBegin(); 2663 BoardDeclarations::Instances::ArduinoDigitalChannel_6.SystemLoopBegin(); 2664 BoardDeclarations::Instances::ArduinoDigitalChannel_8.SystemLoopBegin(); 2665 BoardDeclarations::Instances::ArduinoDigitalChannel_13.SystemLoopBegin(); 2666 BoardDeclarations::Instances::SerialPort0.SystemLoopBeginOutput(); 2667 Declarations::Instances::AccelerometerGyroscope1.SystemLoopBegin(); 2668 Declarations::Instances::Compass1.SystemLoopBegin(); 2669 Declarations::Instances::PulseGenerator1.SystemLoopBegin(); 2670 Declarations::Instances::PulseGenerator2.SystemLoopBegin(); 2671 Declarations::Instances::Delay1.SystemLoopBegin(); 2672 Declarations::Instances::Timer1.SystemLoopBegin(); 2673 Declarations::Instances::Button1.SystemLoopBegin(); 2674 Declarations::Instances::PulseGenerator3.SystemLoopBegin(); 2675 Declarations::Instances::CompassHeading1.SystemLoopEnd(); 2676 Declarations::Instances::Or1.SystemLoopEnd(); 2677 Declarations::Instances::And1.SystemLoopEnd(); 2678 Declarations::Instances::Or2.SystemLoopEnd(); 2679 Declarations::Instances::And2.SystemLoopEnd(); 2680 Declarations::Instances::AnalogMux1.SystemLoopEnd(); 2681 Declarations::Instances::Or3.SystemLoopEnd(); 2682 Declarations::Instances::Or4.SystemLoopEnd(); 2683 Declarations::Instances::Or5.SystemLoopEnd(); 2684}
Documentation
SCHEMATIC DIAGRAM
FK69FHBLUCOCOWP.png

Comments
Only logged in users can leave comments