No dobra, to lopatologicznieSpenser pisze:Pewnie nic :) Skoro jest stałe i nie mam na nie wpływu, to niech sobie tam zostanie.
To jest aparatura
To jest odbiornik
Czy to rozjasnia co oznacza RxBatt?
Moderatorzy: moderatorzy2014, moderatorzy
Nie pod zlacze CAN tylko miedzy GPS a PMU.matulekpl pisze:A co do podłączenia do NAZY V2 to tam podłączasz pod złącze CAN.
Kod: Zaznacz cały
/Users/HaMac/Documents/Arduino/sketch_feb20d/sketch_feb20d.ino:1:28: fatal error: NazaDecoderLib.h: No such file or directory
#include "NazaDecoderLib.h"
^
compilation terminated.
exit status 1
Błąd kompilacji.
Kod: Zaznacz cały
libraries\SoftwareSerial\SoftwareSerial.cpp.o: In function `__vector_3':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial/SoftwareSerial.cpp:229: multiple definition of `__vector_5'
libraries\NazaDecoder\NazaDecoderLib.cpp.o:C:\Users\HaMac\Documents\Arduino\libraries\NazaDecoder/NazaDecoderLib.cpp:193: first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Błąd kompilacji.
Kod: Zaznacz cały
#include "NazaDecoderLib.h"
#include "FrSkySportSensorGps.h"
#include "FrSkySportSensorRpm.h"
#include "FrSkySportSensorVario.h"
#include "FrSkySportSingleWireSerial.h"
#include "FrSkySportTelemetry.h"
#include "SoftwareSerial.h"
FrSkySportSensorGps gps;
FrSkySportSensorRpm rpm;
FrSkySportSensorVario vario;
FrSkySportTelemetry telemetry;
void setup()
{
Serial.begin(115200);
telemetry.begin(FrSkySportSingleWireSerial::SOFT_SERIAL_PIN_2, &gps, &rpm, &vario);
}
void loop()
{
if(Serial.available())
{
if(NazaDecoder.decode(Serial.read()) == NAZA_MESSAGE_GPS)
{
gps.setData(NazaDecoder.getLat(), NazaDecoder.getLon(),
NazaDecoder.getGpsAlt(), NazaDecoder.getSpeed(), NazaDecoder.getCog(),
NazaDecoder.getYear(), NazaDecoder.getMonth(), NazaDecoder.getDay(),
NazaDecoder.getHour(), NazaDecoder.getMinute(), NazaDecoder.getSecond());
rpm.setData(0.0, NazaDecoder.getNumSat(), NazaDecoder.getFixType());
vario.setData(NazaDecoder.getGpsAlt(), NazaDecoder.getGpsVsi());
}
}
telemetry.send();
}
Kod: Zaznacz cały
#include "Arduino.h"
// Uncomment the line below if you want to disable attitude (pitch/roll) sensing. This may be useful when you experience a conflict with another library that also uses the interrupt
// or on a board that does not support the interrupt used. Note that for Teensy boards attitude sensing will be disabled by default.
//#define ATTITUDE_SENSING_DISABLED
#define NAZA_MESSAGE_NONE 0x00
#define NAZA_MESSAGE_GPS 0x10
#define NAZA_MESSAGE_COMPASS 0x20
#if defined(__MK20DX128__) || defined(__MK20DX256__)
#define ATTITUDE_SENSING_DISABLED
#endif
Kod: Zaznacz cały
Szkic używa 10 978 bajtów z (38%) pamięci programu. Maksimum to 28 672 bajtów.
Globalne zmienne używają 622 bajtów z (30%) dynamicznej pamięci, pozostawiając 1 426 bajtów dla lokalnych zmiennch. Maksimum to 2 048 bajtów.