top of page

Forum Comments

WIFI code Seems to Misbehave!
In General Discussion
Gen2 Software/Firmware
In General Discussion
Gen2 Software/Firmware
In General Discussion
Gen2 Software/Firmware
In General Discussion
tom
Oct 25, 2019
There still must be a lot more to it than that: I did what you said. I also had to comment all these, because they are not in "here"; /*#include "AudioSampleEnabled.h" #include "AudioSampleDisabled.h" #include "AudioSampleCalibrate_flapsdown.h" #include "AudioSampleCalibrate_flapsup.h" #include "AudioSampleCalibration_canceled.h" #include "AudioSampleCalibration_mode.h" #include "AudioSampleCalibration_saved.h" */ Even with that I get this: OnSpeedDac: In function 'void updateTones()': OnSpeedDac:558: error: 'ONSPEED_BAND_HIGH' was not declared in this scope } else if(AOA > (onSpeedAOA+ONSPEED_BAND_HIGH)) { ^ OnSpeedDac:564: error: 'ONSPEED_BAND_LOW' was not declared in this scope } else if(AOA >= (onSpeedAOA-ONSPEED_BAND_LOW)) { ^ OnSpeedDac: In function 'void SensorRead()': OnSpeedDac:1728: error: 'PFWD_BIAS' was not declared in this scope Pfwd=GetPressurePfwd()-PFWD_BIAS; ^ OnSpeedDac:1729: error: 'P45_BIAS' was not declared in this scope P45=GetPressureP45()-P45_BIAS; ^ OnSpeedDac:1739: error: 'flapDegrees' was not declared in this scope flapsPos=flapDegrees[flapsIndex]; ^ OnSpeedDac:1755: error: 'CAS_CURVE' was not declared in this scope ASI=CAS_CURVE(ASI); ^ OnSpeedDac: In function 'void switchOnOff()': OnSpeedDac:1982: error: 'AudioSampleEnabled' was not declared in this scope voice1.play(AudioSampleEnabled); ^ OnSpeedDac:1998: error: 'AudioSampleDisabled' was not declared in this scope voice1.play(AudioSampleDisabled); ^ OnSpeedDac: In function 'void LogReplay()': OnSpeedDac:2074: error: 'flapDegrees' was not declared in this scope for (unsigned int i=0; i < (sizeof(flapDegrees) / sizeof(flapDegrees[0]));i++) ^ OnSpeedDac:2086: error: 'PFWD_BIAS' was not declared in this scope PfwdPascal=((PfwdSmoothed+PFWD_BIAS - 0.1*16383) * 2/(0.8*16383) -1) * 6894.757; ^ OnSpeedDac: In function 'void calcAOA(float, float)': OnSpeedDac:2254: error: 'flapDegrees' was not declared in this scope if (flapsPos==flapDegrees[0]) ^ OnSpeedDac:2257: error: 'FLAPSUP_AOA_CURVE' was not declared in this scope AOAAvg+=FLAPSUP_AOA_CURVE(pCoeff); ^ OnSpeedDac:2264: error: 'FLAPSMIDDLE_AOA_CURVE' was not declared in this scope AOAAvg+=FLAPSMIDDLE_AOA_CURVE(pCoeff); ^ OnSpeedDac:2271: error: 'FLAPSDOWN_AOA_CURVE' was not declared in this scope AOAAvg+=FLAPSDOWN_AOA_CURVE(pCoeff); ^ OnSpeedDac: In function 'void SendDisplayData()': OnSpeedDac:2283: error: 'VERTICAL_GLOAD_AXIS' was not declared in this scope if (VERTICAL_GLOAD_AXIS[strlen(VERTICAL_GLOAD_AXIS)-1] =='X') ^ OnSpeedDac:2295: error: 'VERTICAL_GLOAD_AXIS' was not declared in this scope if (VERTICAL_GLOAD_AXIS[0]=='-') gLoad=gLoad+2; // reverse accelerometer axis ^ OnSpeedDac:2316: error: 'flapDegrees' was not declared in this scope flapsPercent=(float)flapsPos/(flapDegrees[sizeof(flapDegrees)/sizeof(int)-1]-flapDegrees[0])*100; //flap angle / flap total travel *100 (needed for displaying partial flap donut on display) ^ OnSpeedDac: In function 'int getFlapsIndex()': OnSpeedDac:2353: error: 'flapPotPositions' was not declared in this scope if (sizeof(flapPotPositions) / sizeof(flapPotPositions[0]) ==1) return 0; ^ OnSpeedDac:2359: error: 'flapPotPositions' was not declared in this scope if (flapPotPositions[0]>flapPotPositions[(sizeof(flapPotPositions) / sizeof(flapPotPositions[0]))-1]) reverseOrder=true; ^ OnSpeedDac:2361: error: 'flapPotPositions' was not declared in this scope for (i = 1; i < (sizeof(flapPotPositions) / sizeof(flapPotPositions[0])); i++) ^ OnSpeedDac: In function 'void setAOApoints(int)': OnSpeedDac:2384: error: 'flapLDMAXAOA' was not declared in this scope LDmaxAOA=flapLDMAXAOA[flapIndex]; ^ OnSpeedDac:2385: error: 'flapONSPEEDAOA' was not declared in this scope onSpeedAOA=flapONSPEEDAOA[flapIndex]; ^ OnSpeedDac:2386: error: 'flapSTALLWARNAOA' was not declared in this scope stallWarningAOA=flapSTALLWARNAOA[flapIndex]; ^ In file included from C:\AOA_Gen2\OnSpeed-Gen2\Software\Teensy Code\OnSpeedDac\OnSpeedDac.ino:57:0: C:\Users\Tom\Documents\Arduino\libraries\LinkedList-1.2.3/LinkedList.h: In instantiation of 'ListNode* LinkedList::getNode(int) [with T = Gaussian]': C:\Users\Tom\Documents\Arduino\libraries\LinkedList-1.2.3/LinkedList.h:314:28: required from 'T LinkedList::get(int) [with T = Gaussian]' C:\Users\Tom\Documents\Arduino\libraries\Gaussian-1.0.7/GaussianAverage.h:90:26: required from here C:\Users\Tom\Documents\Arduino\libraries\LinkedList-1.2.3/LinkedList.h:160:9: warning: converting 'false' to pointer type 'ListNode*' [-Wconversion-null] return false;
0
Gen2 Software/Firmware
In General Discussion
tom
Oct 24, 2019
Lenny, I'm on Win 10
0
0

tom

More actions
bottom of page