Sponsored Content
The Lounge What is on Your Mind? Port VPM Decompression Algorithm to PHP and then to Dive Computer Post 302635733 by Neo on Sunday 6th of May 2012 04:46:11 AM
Old 05-06-2012
Guess I'll start first by porting these functions, one-at-a-time, from C to PHP:

Blue means "First Cut Done" in this thread/project (update each time a function is ported to PHP)

Code:
extern /* Subroutine */ int calc_barometric_pressure();
extern /* Subroutine */ int calc_deco_ceiling();
extern /* Subroutine */ int onset_of_impermeability();
extern /* Subroutine */ int radius_root_finder();
extern /* Subroutine */ int nuclear_regeneration(), clock_();
extern /* Subroutine */ int vpm_repetitive_algorithm();
extern /* Subroutine */ int gas_loadings_surface_interval();
extern /* Subroutine */ int critical_volume();	    ;
extern /* Subroutine */ int calc_crushing_pressure(), 
                            calc_surface_phase_volume_time(), 
                            decompression_stop();
extern /* Subroutine */ int calc_start_of_deco_zone();
extern /* Subroutine */ int calc_initial_allowable_gradient(), 
                            gas_loadings_ascent_descen();
extern /* Subroutine */ int gas_loadings_constant_depth();
extern /* Subroutine */ int vpm_altitude_dive_algorithm();
extern /* Subroutine */ int calc_max_actual_gradient(), 
                            projected_ascent();

extern /* Subroutine */ doublereal schreiner_equation__();
extern /* Subroutine */ doublereal haldane_equation__();

Quote:
WARNING: Breathing compressed gas underwater, whether with conventional open-circuit scuba or closed-circuit rebreathers, is a potentially dangerous activity that requires specialized training. Breathing gas mixtures other than air underwater and especially using rebreather technology underwater, are activities which require considerable specialized training and certification. No one should ever attempt these activities without professional training. The information and software related to scuba diving, decompression theory and software code in this forum is provided for informational purposes only; and this information does not constitute adequate or proper training!
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Decompression utility

I am looking for an unzip application that can handle Unix .z files, but from a Windows environment AND has a command-line prompt. Anybody know of anything? TIA, H2M3 (2 Replies)
Discussion started by: H2M3
2 Replies

2. Windows & DOS: Issues & Discussions

Decompression with Cygwin

I am having some trouble decompressing a tar.bz2 with Cygwin. Is it even possible to do this? I am new to Unix so I have no idea. I downloaded GCC on my Windows machine (gcc-3.4.4.tar.bz2) and I've been trying to decompress and install it. Is cygwin this best way to decompress on a windows... (3 Replies)
Discussion started by: noob1021
3 Replies

3. UNIX for Dummies Questions & Answers

Compression and decompression in the same script

Hi Guys, I'm just wondering how to compress and decompress a file in the same script using multiple programs, and can it be done in one line? e.g gzip file && gunzip file bzip2 file && bunzip file I tried this and a few other combinations but it doesn't seem to work. Any... (6 Replies)
Discussion started by: Spaulds
6 Replies

4. Ubuntu

SSH and VPM Doubt

hI MY Nerd folks...i have ubuntu 10.4 in my machine...i want to use open shh in my latop for the sake of being complete anonymous...but am just a noob anyont got any tips for me for the complete steps or for How to LInks ...watever..thanks in advance (4 Replies)
Discussion started by: surensach
4 Replies

5. What is on Your Mind?

Port VPM Decompression Algorithm to PHP (Main Loop) - Part 2

Continued from here. Port the main loop C code to PHP. Here is the C code for the main loop: /* =============================================================================== */ /* Begin MAIN proc (see endofpgm for alternate entry) */ /*... (2 Replies)
Discussion started by: Neo
2 Replies

6. Post Here to Contact Site Administrators and Moderators

VPM decompression algorithm +++for NEO+++

Hi Neo, i have followed your porting of the VPM algorithm to C+. Did you ever finish this exercise? I am playing around with some ARM chips and would love to run the algorithm on them... would you care to share the final results? Thanks for your help. Greetings Carsten (0 Replies)
Discussion started by: carsten
0 Replies
gui_shadow_box_proc(3alleg4)					  Allegro manual				      gui_shadow_box_proc(3alleg4)

NAME
gui_shadow_box_proc, gui_ctext_proc, gui_button_proc, gui_edit_proc, gui_list_proc, gui_text_list_proc - Hooks to customise the look and feel of Allegro dialogs. SYNOPSIS
#include <allegro.h> extern int (*gui_shadow_box_proc)(int msg, struct DIALOG *d, int c); extern int (*gui_ctext_proc)(int msg, struct DIALOG *d, int c); extern int (*gui_button_proc)(int msg, struct DIALOG *d, int c); extern int (*gui_edit_proc)(int msg, struct DIALOG *d, int c); extern int (*gui_list_proc)(int msg, struct DIALOG *d, int c); extern int (*gui_text_list_proc)(int msg, struct DIALOG *d, int c); DESCRIPTION
If set, these functions will be used by the standard Allegro dialogs. This allows you to customise the look and feel, much like gui_fg_color and gui_bg_color, but much more flexibly. SEE ALSO
alert(3alleg4), alert3(3alleg4), file_select_ex(3alleg4), gfx_mode_select(3alleg4), gui_fg_color(3alleg4) Allegro version 4.4.2 gui_shadow_box_proc(3alleg4)
All times are GMT -4. The time now is 02:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy