Basic tests finished, HW working from FORTE code
Open Questions left:
Apr.22 Light Sensor Clean-up
ltsensor.rd FB (test appl(s): blinky3rd)
test: black/white/brown + led on/off
Open Questions left:
Apr.22 Light Sensor Clean-up
ltsensor.rd FB (test appl(s): blinky3rd)
test: black/white/brown + led on/off
Sensor 3 returns 1020 no matter what with light sensors plugged into ports 1-3
All sensors return a value around 1020 if nothing is plugged in.
If no light sensor is plugged into port 2, but a light sensor is plugged into port 3, then the value is read out when port # = 2 (!?)
All sensors return a value around 1020 if nothing is plugged in.
If no light sensor is plugged into port 2, but a light sensor is plugged into port 3, then the value is read out when port # = 2 (!?)
- changed sensor
- changed cable
- unplugged
- turned Lego on and off
Motor.basic - motor does not seem to halt or turn off as expected
Buttons: How can we detce multiple buttons as inputs. Only 1 is returned at at time.
Working:
Testcases under: LegoHW
Buttons: 2 1 4 each button is a bit.
8
Touch 0 = out; 1023=pushed;
Shutdown FB (test appl(s): TurnOff)
No outputs since can't return something after power is off,
however Forte export filter does not generate one 0 to indicate no outputs. (fix coming)
Works with hand change.
Motors A-C work as output ports 0-2
ltSensor.led ports 1-4 (test appl(s): blinky1; OffLed2)
FORTE changes needed for PORT init needed have been checked in (so shouldn't reoccur)
ltsensor.rd FB ports 1-4 (test appl(s): RdLight, OffLed2)
The lms AVR functions from Alex are in c since added on to eCos
but Forte generates C++ code so following was needed:
#ifdef __cplusplus
extern "C" {
#endif
function headers
#ifdef __cplusplus
}
#endif
Sensor Ports and led = flood light
port 4 needed additional initialization for avr since its a rs 485 port
how lejos initializes ports
No comments:
Post a Comment