Jump to content

Roby Wolf

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Roby Wolf

  1. Hi, I did a lot of tests and in the end I found commands to turn on and off the electric BUS. simply: Test: AC_Generator_1_on (true) Test: AC_Generator_2_on (true) Test: DC_Battery_on (true) There are 28 volts when the battery is switched on in the DC BUS. When the generators are switched on and the engine RPMs exceed 40% in the AC BUS, there are 115 volts. I failed to change this values. I hoped that having powered the BUS the avionics systems worked, I did tests on the radio system and the ADI but I can not make them work. Does anyone have any ideas? Thanks, see you soon
  2. hi, I read a response that is now deleted, saying that I have to set the bus voltage. I tried but I can not get it running. I can read some value but I can not change anything. In F16Demo mod I found this: electric_system: AC_Generator_1_on (value> 0) electric_system: AC_Generator_2_on (value> 0) electric_system: DC_Battery_on (value> 0) but with that command I always get the same values and do not modify anything even by trying other values. I would like to implement a bit of things, such as Radio or ADI and ILS, and I think that they must be powered. Is anybody so polite to give me a clue how to try? Thank you very much. See you soon
  3. Hello everyone, @gyrovague I would need some help. I'm trying to implement an electrical system with avSimpleElectricSystem, but I can not change the bus status. I tried with several commands but I have no Device response. If I start with a powered engine mission I have a value of 28 on the two DC_Bus and 0 on the two AC_Bus and I can not change the state and even pushing the motor I have the same values. my test code in device_init.lua creators[devices.TEST_DEVICES] = {"avSimpleElectricSystem", LockOn_Options.script_path.."Test_Devices.lua"} in Test_Devices.lua local electric_system = GetSelf() local update_time_ms = 1.0/20.0 make_default_activity(update_time_ms) local sensor_data = get_base_data() local Generator_2 = 10317 electric_system:listen_command(Generator_2) function SetCommand(command,value) if command == Generator_2 then electric_system: AC_Generator_1_on(true) electric_system: AC_Generator_2_on(true) electric_system: DC_Battery_on(true) end print_message_to_user("AC 1 "..electric_system:get_AC_Bus_1_voltage()) print_message_to_user("AC 2 "..electric_system:get_AC_Bus_2_voltage()) print_message_to_user("DC 1 "..electric_system:get_DC_Bus_1_voltage()) print_message_to_user("DC 2 "..electric_system:get_DC_Bus_1_voltage()) end I tried these commands electric_system: DC_Battery_on(1) electric_system: DC_Battery_on(true) electric_system: DC_Battery_on(value > 0) electric_system: DC_Battery_on() I think you expect a int but I've also tried these electric_system: DC_Battery_on("1") electric_system: DC_Battery_on("on") with different types of variable but without result. You might have what type of command I need to send, what do you expect the function as a parameter? Thanks a lot for the help. See you soon
×
×
  • Create New...