Search found 16821 matches

by MikeB
Wed Jun 20, 2012 10:47 pm
Forum: openTx
Topic: SD card models archive / restore
Replies: 96
Views: 38006

Re: SD card models archive / restore

On ersky9x I have a debug task that talks to the non-telemetry serial port. Using this you can display any memory contents, including peripheral interface registers. I have found it very useful in tracking down things that are not working.

Mike.
by MikeB
Wed Jun 20, 2012 10:43 pm
Forum: erskyTx (was ersky9x)
Topic: ERSKY9x Rev. B1 User Area
Replies: 1257
Views: 534118

Re: ERSKY9x Rev. B1 User Area

Thanks all, I'll go ahead and commit as the 'latest' version. Then I can move forward with more changes using the RTOS, it's quite useful, just need to get to grips with all its options and functions.

Mike.
by MikeB
Wed Jun 20, 2012 6:50 pm
Forum: erskyTx (was ersky9x)
Topic: ERSKY9x Rev. B1 User Area
Replies: 1257
Views: 534118

Re: ERSKY9x Rev. B1 User Area

No real difference, just still all working properly. The code is now running under a real time OS now.

Mike.
by MikeB
Wed Jun 20, 2012 4:28 pm
Forum: openTx
Topic: SD card models archive / restore
Replies: 96
Views: 38006

Re: SD card models archive / restore

As I understand this RTOS, it works on a System Tick Timer, which we currently have set to 2mS. The mixer task will be started at a tick boundary. If it takes only 0.36mS to run, then it delays for 1 tick, it wilol be scheduled 2mS after it last started, so leaving 1.64mS for other tasks every 2 mS....
by MikeB
Wed Jun 20, 2012 3:54 pm
Forum: openTx
Topic: SD card models archive / restore
Replies: 96
Views: 38006

Re: SD card models archive / restore

It's not quite doing the mixer task every 2 mS is it? You have a delay of 2mS before running it again, so if it takes more than 2mS to run, it will only run every 4 mS.

Mike.
by MikeB
Wed Jun 20, 2012 2:17 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

Just is there anything that does not work as it did before, or is slow to respond (other than the backlight). I don't thibnk there is any problem, but I know, from past experience, the person who writes the software does not test for such problems as well as someone else.

Mike.
by MikeB
Wed Jun 20, 2012 2:01 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

Yes, just turn the voice off, in the current version, just by selecting beeper or pispkr, thanks.

Mike.
by MikeB
Wed Jun 20, 2012 11:33 am
Forum: The Pickled Gnu (The Pub)
Topic: Switchs summary screen ?
Replies: 22
Views: 12110

Re: Switchs summary screen ?

I'm considering add a "play voice once" feature. Each entry will allow you to select a switch and voice file. When the switch becomes ON, the voice file will play once. The switch may, of course, be !switch so a voice file would play when that switch is turned off. I'm not sure which of th...
by MikeB
Wed Jun 20, 2012 11:19 am
Forum: erskyTx (was ersky9x)
Topic: ERSKY9x Rev. B1 User Area
Replies: 1257
Views: 534118

Re: ERSKY9x Rev. B1 User Area

Having done a major upgrade to ersky9x, with a real time OS included, I'd like a couple of volunteers to check it is all still working OK. The source is committed, but rather than just commit a new binary on unsuspecting users, I've posted the binary in the downloads section as "ersky9x_rom_r80...
by MikeB
Wed Jun 20, 2012 11:09 am
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

Jhsa, and anyone else, I'd like to commit the code of where we are. It will make it easier to deal with non-voice updates. If anyone can test operation with the voice turned OFF, and even test this code on a non voice-modified Tx, it would be useful. Just backup your EEPROM first! If you have the vo...
by MikeB
Wed Jun 20, 2012 10:59 am
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

Yes, but only 1 is connected to the audio amplifier.

Mike.
by MikeB
Wed Jun 20, 2012 10:58 am
Forum: The Pickled Gnu (The Pub)
Topic: Switchs summary screen ?
Replies: 22
Views: 12110

Re: Switchs summary screen ?

On the stock board, we have limits to what we can achieve due to the flash and EEPROM limitations. I am looking at what might be possible though.
On the SKY9X board we should be able to do much better.

Mike.
by MikeB
Wed Jun 20, 2012 10:44 am
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

It may not be a problem, I just wonder if there is any difference in the time between sending the command to the module and the sound starting to play for different file types and lengths. For Ersky9x, we really need 12-bit PCM data as the DAC is 12-bit. If each 12-bit value is in a 16-bit word, thi...
by MikeB
Tue Jun 19, 2012 9:13 pm
Forum: erskyTx (was ersky9x)
Topic: ERSKY9X Coding
Replies: 4539
Views: 1961304

Re: ERSKY9X Coding

Just been testing the SD card in ersky9x. I've moved my debug into a Co OS task, so it doesn't upset the main loop. Then I added code to mount the SD card and read a few bytes from a file. I have two SD cards, one 2Gb formatted FAT(16), the other 4Gb formatted FAT32. The FAT(16) card read perfectly,...
by MikeB
Tue Jun 19, 2012 6:44 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

Mike, as you already assigned in the code voice number 46 to the tx battery alarm, I will use voice number 31 for the flight battery alarm, is that ok? I was looking for a option on the C:Sw like "V=ofs" (or just "ofs") for C.SW7. would be a bit more tidy.. What do you think? is...
by MikeB
Tue Jun 19, 2012 6:26 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

I find the AD4 files OK, as long as you can get them the correct length to get rid of the repeats, just tedious to do.

I'm going to go for sample rate of 12000, 8-bit PCM WAV. These are not too large.

Mike.
by MikeB
Tue Jun 19, 2012 11:47 am
Forum: er9x
Topic: er9x TX display the battery voltage will float!!!
Replies: 20
Views: 12297

Re: er9x TX display the battery voltage will float!!!

You may have a faulty bandgap reference in the processor. Go to the analog display DIAG screen (LEFT LONG, then LEFT a couple more timer. On the right of that screen is a number under BG. This number should stay almost constant. See what it is after switch on, then later when the voltage reading has...
by MikeB
Mon Jun 18, 2012 10:38 pm
Forum: er9x
Topic: er9x development
Replies: 3179
Views: 1451870

Re: er9x development

If I remove anything, it would only be the throttle trace graph, that is what uses up lots of RAM (over 120 bytes). The timer values would still be left.

Mike.
by MikeB
Mon Jun 18, 2012 6:14 pm
Forum: er9x
Topic: er9x development
Replies: 3179
Views: 1451870

Re: er9x development

Does anyone find the throttle TRACE display, in the STAT screen, useful, or even look at it?
It appears to show the throttle setting (averaged over 10 seconds) for the last 20 minutes.
I ask because if not useful/needed removing it will save some flash and quite a bit of RAM.

Mike.
by MikeB
Mon Jun 18, 2012 4:54 pm
Forum: erskyTx (was ersky9x)
Topic: ERSKY9X Coding
Replies: 4539
Views: 1961304

Re: ERSKY9X Coding

@Mike again: I remember a post where you wrote that we have to take care that a thread doesn't write to the LCD while another read the keys (or vice versa). Yes, the LCD data lines double as button inputs. The LCD driver I wrote leaves them as inputs, so they may be read elsewhere. If you interrupt...
by MikeB
Mon Jun 18, 2012 4:51 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

I'm wondering if it is a reset problem to the sound module. I chose to rely on the power up reset, maybe its reset needs something better. Just another thing to look at.

Mike.
by MikeB
Mon Jun 18, 2012 4:22 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

I think I have a fix for this, I have modified the getSwitch processing to check for valid telemetry. Seems to work OK.
I need to do some things to ersky9x now as well.

Mike.
by MikeB
Mon Jun 18, 2012 3:08 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

Yes, the Tx battery low alarm is built in, it called and audio event AU_TX_BATTERY_LOW, now if voice is enabled, it says voice message[V_BATTERY_LOW] (currently 46 "battery low"). If I understand correctly, you have want alarm on A1 set by something like: CS1: v<ofs A1= 10.5 Safety/alarm s...
by MikeB
Mon Jun 18, 2012 1:54 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

I've done it this way in order to use things already in the EEPROM. I'm trying not to do a BIG change to the EEPROM structure. My personal feeling is you only really need a few voice information items, and a few voice alarms. Any more, and you will probably miss something because there just isn't en...
by MikeB
Mon Jun 18, 2012 12:32 pm
Forum: erskyTx (was ersky9x)
Topic: ERSKY9X Coding
Replies: 4539
Views: 1961304

Re: ERSKY9X Coding

Brent: The bootloader won't write below 80h, or on top of itself, at least that is what I thought I put in it! Bertrand: May not be impossible, but quite difficult. You would need an applet that can read/write the SD card, but even then I'm not sure where the file system code would be, SAM-BA doesn'...
by MikeB
Mon Jun 18, 2012 12:25 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

Currently, you set a custom switch, with a telemetry input A1, A2, or BATT (for tx battery), as (say) v<ofs BATT 9.5. Then you set a safety/alarm switch to V SW1 46. (46 is voice for battery low) There you are voice alarm done!. Can't replace the RED/YEL etc as there is only 2 bits of EEPROM allocat...
by MikeB
Mon Jun 18, 2012 10:08 am
Forum: erskyTx (was ersky9x)
Topic: ERSKY9X Coding
Replies: 4539
Views: 1961304

Re: ERSKY9X Coding

No hardware mod needed, just plug a suitable battery in if required. I thought 3 was good myself. The coprocessor is on I2C bus, but has a bootloader in it (on new boards), and an applet is available to download a new program to it. No real application code done for it yet, I just got the bootloader...
by MikeB
Mon Jun 18, 2012 9:48 am
Forum: erskyTx (was ersky9x)
Topic: ERSKY9X Coding
Replies: 4539
Views: 1961304

Re: ERSKY9X Coding

I was looking into this yesterday. The arm processor has an RTC peripheral, that runs from a 32.768 kHz oscillator. Because we were running out of pins, it was decided not to put a 32.768 crystal and use up 2 pins, so it will run from an internal 32 kHz RC oscillator. There is no battery backup avai...
by MikeB
Sun Jun 17, 2012 10:04 pm
Forum: erskyTx (was ersky9x)
Topic: ERSKY9X Coding
Replies: 4539
Views: 1961304

Re: ERSKY9X Coding

Great. I have just committed the Co OS files, but not the binary (yet). Compile and test with both Co OS and the low level SD card code in seems to work. Only 4 files needed for Co OS: coos.c All the co OS code coocox.h Header for Co OS itself OsConfig.h Configuration for co OS, may need to change t...
by MikeB
Sun Jun 17, 2012 8:03 pm
Forum: er9x
Topic: Audio (voice) - Stock 9X PCB
Replies: 4092
Views: 1622847

Re: Audio (voice)

I think 150 and up will be OK.

Nice idea, unfortunately the custom switches are only looked at when needed, so we don't know when they actually switched ON or OFF.
I'll keep the idea in mind as I think this through.

Mike.

Go to advanced search