8cH9azbsFifZ / arduino_ft817

Arduino Library for the YAESU FT 817
GNU General Public License v3.0
22 stars 8 forks source link

Can't compile a basic sketch #71

Open exidyboy opened 11 years ago

exidyboy commented 11 years ago

Hi there,

I use my FT817 to directly drive antennas for 2M and 70cm and transverters for 23cm and 13cm during Field Day operations. WIth only one rig some inconvenient manual re-patching of RF cables and PTT lines is required to work ones way up the bands and it is hard to return quickly to 2M for liaison. My finances do not extend to a rig for each band and sometimes I carry my equipment up the hill so I want to keep the load as light as possible.

By adding some RF relays to bypass the transverters and bringing the band/frequency under microprocessor control I hope to make portable microwave operation more convenient for myself and reduce the delay that the stations I work must endure when I QSY.

However I have spent a frustrating evening unable to get even a basic sketch to compile on Arduino 1.0.2 on Intel Mac. Perhaps someone could submit a known good, bare minimum example sketch that does not require the installation of third party libraries for servo control, LCD display etc so that I can debug the development environment with the minimum number of variables and start talking to the rig.

An example would be a sketch the simply reads the current frequency and sends it to the serial monitor.

If I cut down the automatic loop sketch to its bare minimum:

#include <SoftwareSerial.h>
#include "FT817.h"

const int rxPin = 8;
const int txPin = 7;

FT817 rig;

void setup() {

Serial.begin(9600);
SoftwareSerial mySerial(rxPin,txPin);
rig.assignSerial(mySerial);
}

void loop() {

// I can't understand why I need the following line
// for now I'll live with it
rig.begin(9600);

// Set FM for Tuning
rig.setMode(FT817_MODE_FM);

}

I get the following errors.

ft_817_automatic_loop:25: error: no matching function for call to 'FT817::FT817()'
/Users/test/Documents/Arduino/libraries/FT817/FT817.h:128: note: candidates are: FT817::FT817(HardwareSerial*)
/Users/test/Documents/Arduino/libraries/FT817/FT817.h:123: note:                 FT817::FT817(const FT817&)
ft_817_automatic_loop.ino: In function 'void setup()':
ft_817_automatic_loop:31: error: 'class FT817' has no member named 'assignSerial'

Apologies in advance if I am missing something glaringly obvious in my setup. 73's Mike VK3UBM

8cH9azbsFifZ commented 11 years ago

Hi Mike,

This is due to my hack in Version:https://github.com/8cH9azbsFifZ/arduino_ft817/commit/b4143b71df18331dd463c49990a7d39dad219241

Go to the old version without the "SER" stuff in order to get rid of the hardware serial stuff :)

73 de dg6fl

exidyboy commented 11 years ago

Thanks OM. Actually we got around the compilation errors by not using softwareserial at all and talking to the rig via the UART on the ATMega8.

Thanks for your contribution to the library and responding to my question.

Here is a video of the controller in action on the weekend.

http://vimeo.com/57373241

73's

8cH9azbsFifZ commented 11 years ago

Thanks for the notification :)

Currently I am working on a Raspi Controller for the FT817...

73 de dg6fl

On Tue, Jan 15, 2013 at 1:00 PM, Michael Borthwick <notifications@github.com

wrote:

Thanks OM. Actually we got around the compilation errors by not using softwareserial at all and talking to the rig via the UART on the ATMega8.

Thanks for your contribution to the library and responding to my question.

Here is a video of the controller in action on the weekend.

http://vimeo.com/57373241

73's

— Reply to this email directly or view it on GitHubhttps://github.com/8cH9azbsFifZ/arduino_ft817/issues/71#issuecomment-12263494.

Gerolf Ziegenhain, Dr. rer. nat., Dipl. Phys. http://gerolf.ziegenhain.com