chsw / MavLink_FrSkySPort

30 stars 62 forks source link

Blank Telemetry Screen #14

Closed Johnex closed 10 years ago

Johnex commented 10 years ago

Hi! I finished my tricopter and cloned the repository here. The actual mavlink script on the teensy seems to work as i get gps data in the standard telemetry screen on the taranis, but as soon as i try to put any of the 2 Arducopter_Status scripts i get a blank pages for the scripts. Arducopter_Position does work though.

I copied the folders correctly im sure, and changed the modelname folder to my model name.

Im running the latest master branch here and OpenTX 2.0.12

SukMeWot commented 10 years ago

Make sure that your model name doesn't contain spaces - mine did and the Taranis choked on this.

Not sure how you got Arcucopter_Position telem2.lua to work though since it contains references to a number of BMP files that don't exist in this repository (don't ask me why I have no clue) so you must have these files to get this working. I got it working by substituting the missing filenames for existing ones but it doesn't add much value - telem1 from Arducopter_Status does pretty much the same thing.

telem1 and telem2 from Arducopter_Status do work though - did you add the ApmTelem.lua to the list of LUA's active for the model in question - loading firmware or models from companion deletes them and you need to put them back - at least that has been my experience. I don't bother with APMSounds it's pointless since you can do exactly the same thing using the special functions.

chsw commented 10 years ago

Make sure the mavlink-script is activated on "custom scripts"-screen. I'm planning to show a warning if this step is not completed, but I haven't had time yet.

I don't agree that the ApmSounds is useless. It's certainly possible to do the same thing using special functions and switches, but for most, adding one scripts seems easier :)

Johnex commented 10 years ago

Aha i didn't activate it in custom scripts, thanks guys!

Also, from what i understand ApmSounds gets the current flight mode from the mavlink messages so you know that the flight controller actually enabled the mode, while special functions just tells you that the radio has sent the command, but its not a real confirmation that its actually active.

SukMeWot commented 10 years ago

I think that to make APMSounds more 'useful' perhaps it could say something like 'Mode X acknowledged and Activated' or similar, I didn't really understand what it was trying to achieve. Regrettably I doubt that I have a suitable voice for recording said things.

Johnex commented 10 years ago

Its super easy to make custom sounds. you want me to make some higher quality sounds using the acapella demos?

chsw commented 10 years ago

ApmSounds informs the user of the actual mode selected by the auto-pilot. Correct me if i'm wrong, but to do the same thing without lua, you first have to create logical switches for all the modes, and then add the soundfile one by one on the special functions page? Or is there an easier way?

About the soundfiles. I've created my files using the OpenTx-speaker app. If someone makes nice sounding higher quality ones, i'll happily replace them.

SukMeWot commented 10 years ago

Why not - I'm intrigued at anything that can be done without employing a voice actor, I still need to update the rather whimpy speaker on my Taranis - either that or start using a headset, sounds OK in the house, can barely hear it outside.

Johnex commented 10 years ago

I'm making the sounds now guys ;)

SukMeWot commented 10 years ago

You are correct re the special functions CHSW, I haven't found any other way, not all modes are available as wav files - drift for instance.

lvale commented 10 years ago

SukMeWot. I was trying to do that, but having the modes that are stored being sent also.

I do have the radio say with logical switches when the switches change position, but if you change the flight mode stored on the APM you must also change all the logic on the radio.

If you see some of the sounds here, you can find ALL the flight modes spoken. Half are terminated by the word Active, and the other half the word engaged.ex. AVFM0E and AVFM0A or with a different voice ALFM0E and ALFM0A

screen shot 2014-09-19 at 19 47 44

SukMeWot commented 10 years ago

I'll have another play, I need to work on the sound anyhow because as I said you can hardly hear it outdoors.

lvale commented 10 years ago

Johnex

IMHO, the best synthetic voices that I've heard are either the native Voices on Mac OSX or the Special Voices with Microsoft Speech Server.

chsw commented 10 years ago

Then we also have the use-case when the user changes the mode over telemetry (using a gcs). How do we want to handle these situations?

Johnex commented 10 years ago

Ok done the voices. Question now is how to add them here. I have to fork the repository and then make a pull request? im a total nub at this lol...

Maybe dropbox zip file you chsw you add it?

lvale commented 10 years ago

Christian

The option would be to have the APM send down the value of the FLTMODE1 to 6 and this would have to be stored on the radio. Unless we change the purpose of this project and start sending Mavlink commands via the Taranis commands. I can't do it because my Teensy has the TX pin removed because it's plugged in parallel with a Bluetooth.

I like it as it is now.

Johnex commented 10 years ago

https://dl.dropboxusercontent.com/u/6749621/apm_sounds.zip

Johnex commented 10 years ago

SukMeWot, you will hear these sounds no problem. the volume is also higher without any changes on the radio.

SukMeWot commented 10 years ago

Going to try them for sure

I'd help out but I'm still new to the Ardu code and this particular project, still finding my feet and finding out what's available and in what library / file, don't feel comfortable hacking around just yet.

SukMeWot commented 10 years ago

The sounds are pretty darn good I'm going to look up this 'acapella demos' ..

Johnex commented 10 years ago

So if you want to make custom sounds here is my process: I go to http://www.acapela-group.com/ . In the demo input add a list of all the sounds i want to make. For example: Stabilize. Acro. Altitude Hold. Auto. Guided. Loiter. Return To Launch. Circle. Land. Optical Flow: Loiter. Drift. Sport. Auto-Tune Engaged. Position Hold.

The new lines are just to make it easier to see, the periods add silence after each read text. I use chrome so i press Ctrl + Shift + J to bring up the developer console. I click on the network tab and then click "Listen" on the demo site. The mp3 file generated by the synthesizer comes up there, and i just copy the link and download the file. I then convert the file to WAV with PCM encoding and 32khz, 16bit mono settings. Using a silence splitter i get new wav files split into all the files i want. rename and done!

For encoding i use dbPoweramp, and for splitting i use Visual MP3 splitter & Joiner.

Entire process takes about 3min for all the files. (I had a problem with Drift getting cut short and sounding strange so that one made it take longer than it should have).

Johnex commented 10 years ago

Here is a link for you guys for the OpenTX sounds also in high quality, yes all the sounds. Took just 30min to make all, most time to change file names lol.

https://dl.dropboxusercontent.com/u/6749621/opentx-english-johnex-rev3.zip

chsw commented 10 years ago

If anybody here are good at making icons, I need some logical icons (8x8 pixels or perhaps 7x7) for these messages: Emergency, Alert, Critical, Error, Warning, Notice, Info, Debug

Johnex commented 10 years ago

Chris, did you test out the sounds? :) Worthy of your repository? :+1:

SukMeWot commented 10 years ago

They're in my repository - and my TX - muchos gracias

Johnex commented 10 years ago

Suk did you check the rest of the sounds for OpenTX a few posts up? :)

SukMeWot commented 10 years ago

Yeh - loaded those too :+1:

chsw commented 10 years ago

Sounds good, I put them in the repository.

ggregory8 commented 10 years ago

@chsw Hey guys, I've loaded all this up and am getting the blank telemetry screens as well. How to I get to the "custom scripts" screen? I haven't seen this before, through companion or on the Taranis?

Also the apm_sounds script doesn't seem to work either, assumming I've put it in the correct place. Is there somewhere to enable this?

ggregory8 commented 10 years ago

Ok I found the issue. Had to select Lua in the build options in Companion Settings and then download the firmware from the internet (with lua enabled). Once I downloaded this to the Taranis and selected the scripts under 'Custom Scripts' in the model settings it was away.

Maybe on the readme file we should add a note about this.

chsw commented 10 years ago

Johnex: There's some new sound in my repository that you may update if you have time/want to :)

Johnex commented 10 years ago

Sure thing will do it when I get home )

Sent from Samsung Mobile.

-------- Original message --------
From: Christian notifications@github.com
Date:11/10/2014 17:07 (GMT+01:00)
To: chsw/MavLink_FrSkySPort MavLink_FrSkySPort@noreply.github.com
Cc: Johnex jlnorrbin@johnex.se
Subject: Re: [MavLink_FrSkySPort] Blank Telemetry Screen (#14)
Johnex: There's some new sound in my repository that you may update if you have time/want to :) — Reply to this email directly or view it on GitHub.